1// 2// libm.so and libm.a for target. 3// 4package { 5 default_applicable_licenses: ["bionic_libm_license"], 6} 7 8license { 9 name: "bionic_libm_license", 10 visibility: [":__subpackages__"], 11 license_kinds: [ 12 "SPDX-license-identifier-Apache-2.0", 13 "SPDX-license-identifier-BSD", 14 "SPDX-license-identifier-MIT", 15 "legacy_unencumbered", 16 ], 17 license_text: [ 18 "NOTICE", 19 ], 20} 21 22cc_library { 23 name: "libm", 24 defaults: ["linux_bionic_supported"], 25 ramdisk_available: true, 26 vendor_ramdisk_available: true, 27 recovery_available: true, 28 static_ndk_lib: true, 29 30 whole_static_libs: ["libarm-optimized-routines-math"], 31 32 tidy_disabled_srcs: ["upstream-*/**/*.c"], 33 srcs: [ 34 "upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c", 35 "upstream-freebsd/lib/msun/src/catrig.c", 36 "upstream-freebsd/lib/msun/src/catrigf.c", 37 "upstream-freebsd/lib/msun/src/e_acos.c", 38 "upstream-freebsd/lib/msun/src/e_acosf.c", 39 "upstream-freebsd/lib/msun/src/e_acosh.c", 40 "upstream-freebsd/lib/msun/src/e_acoshf.c", 41 "upstream-freebsd/lib/msun/src/e_asin.c", 42 "upstream-freebsd/lib/msun/src/e_asinf.c", 43 "upstream-freebsd/lib/msun/src/e_atan2.c", 44 "upstream-freebsd/lib/msun/src/e_atan2f.c", 45 "upstream-freebsd/lib/msun/src/e_atanh.c", 46 "upstream-freebsd/lib/msun/src/e_atanhf.c", 47 "upstream-freebsd/lib/msun/src/e_cosh.c", 48 "upstream-freebsd/lib/msun/src/e_coshf.c", 49 "upstream-freebsd/lib/msun/src/e_fmod.c", 50 "upstream-freebsd/lib/msun/src/e_fmodf.c", 51 "upstream-freebsd/lib/msun/src/e_gamma.c", 52 "upstream-freebsd/lib/msun/src/e_gammaf.c", 53 "upstream-freebsd/lib/msun/src/e_gammaf_r.c", 54 "upstream-freebsd/lib/msun/src/e_gamma_r.c", 55 "upstream-freebsd/lib/msun/src/e_hypot.c", 56 "upstream-freebsd/lib/msun/src/e_hypotf.c", 57 "upstream-freebsd/lib/msun/src/e_j0.c", 58 "upstream-freebsd/lib/msun/src/e_j0f.c", 59 "upstream-freebsd/lib/msun/src/e_j1.c", 60 "upstream-freebsd/lib/msun/src/e_j1f.c", 61 "upstream-freebsd/lib/msun/src/e_jn.c", 62 "upstream-freebsd/lib/msun/src/e_jnf.c", 63 "upstream-freebsd/lib/msun/src/e_lgamma.c", 64 "upstream-freebsd/lib/msun/src/e_lgammaf.c", 65 "upstream-freebsd/lib/msun/src/e_lgammaf_r.c", 66 "upstream-freebsd/lib/msun/src/e_lgamma_r.c", 67 "upstream-freebsd/lib/msun/src/e_log10.c", 68 "upstream-freebsd/lib/msun/src/e_log10f.c", 69 "upstream-freebsd/lib/msun/src/e_remainder.c", 70 "upstream-freebsd/lib/msun/src/e_remainderf.c", 71 "upstream-freebsd/lib/msun/src/e_rem_pio2.c", 72 "upstream-freebsd/lib/msun/src/e_rem_pio2f.c", 73 "upstream-freebsd/lib/msun/src/e_scalb.c", 74 "upstream-freebsd/lib/msun/src/e_scalbf.c", 75 "upstream-freebsd/lib/msun/src/e_sinh.c", 76 "upstream-freebsd/lib/msun/src/e_sinhf.c", 77 "upstream-freebsd/lib/msun/src/k_cos.c", 78 "upstream-freebsd/lib/msun/src/k_cosf.c", 79 "upstream-freebsd/lib/msun/src/k_exp.c", 80 "upstream-freebsd/lib/msun/src/k_expf.c", 81 "upstream-freebsd/lib/msun/src/k_rem_pio2.c", 82 "upstream-freebsd/lib/msun/src/k_sin.c", 83 "upstream-freebsd/lib/msun/src/k_sinf.c", 84 "upstream-freebsd/lib/msun/src/k_tan.c", 85 "upstream-freebsd/lib/msun/src/k_tanf.c", 86 "upstream-freebsd/lib/msun/src/s_asinh.c", 87 "upstream-freebsd/lib/msun/src/s_asinhf.c", 88 "upstream-freebsd/lib/msun/src/s_atan.c", 89 "upstream-freebsd/lib/msun/src/s_atanf.c", 90 "upstream-freebsd/lib/msun/src/s_carg.c", 91 "upstream-freebsd/lib/msun/src/s_cargf.c", 92 "upstream-freebsd/lib/msun/src/s_cargl.c", 93 "upstream-freebsd/lib/msun/src/s_cbrt.c", 94 "upstream-freebsd/lib/msun/src/s_cbrtf.c", 95 "upstream-freebsd/lib/msun/src/s_ccosh.c", 96 "upstream-freebsd/lib/msun/src/s_ccoshf.c", 97 "upstream-freebsd/lib/msun/src/s_cexp.c", 98 "upstream-freebsd/lib/msun/src/s_cexpf.c", 99 "upstream-freebsd/lib/msun/src/s_cimag.c", 100 "upstream-freebsd/lib/msun/src/s_cimagf.c", 101 "upstream-freebsd/lib/msun/src/s_cimagl.c", 102 "upstream-freebsd/lib/msun/src/s_clog.c", 103 "upstream-freebsd/lib/msun/src/s_clogf.c", 104 "upstream-freebsd/lib/msun/src/s_conj.c", 105 "upstream-freebsd/lib/msun/src/s_conjf.c", 106 "upstream-freebsd/lib/msun/src/s_conjl.c", 107 "upstream-freebsd/lib/msun/src/s_cos.c", 108 "upstream-freebsd/lib/msun/src/s_cospi.c", 109 "upstream-freebsd/lib/msun/src/s_cpow.c", 110 "upstream-freebsd/lib/msun/src/s_cpowf.c", 111 "upstream-freebsd/lib/msun/src/s_cpowl.c", 112 "upstream-freebsd/lib/msun/src/s_cproj.c", 113 "upstream-freebsd/lib/msun/src/s_cprojf.c", 114 "upstream-freebsd/lib/msun/src/s_cprojl.c", 115 "upstream-freebsd/lib/msun/src/s_creal.c", 116 "upstream-freebsd/lib/msun/src/s_crealf.c", 117 "upstream-freebsd/lib/msun/src/s_creall.c", 118 "upstream-freebsd/lib/msun/src/s_csinh.c", 119 "upstream-freebsd/lib/msun/src/s_csinhf.c", 120 "upstream-freebsd/lib/msun/src/s_csqrt.c", 121 "upstream-freebsd/lib/msun/src/s_csqrtf.c", 122 "upstream-freebsd/lib/msun/src/s_ctanh.c", 123 "upstream-freebsd/lib/msun/src/s_ctanhf.c", 124 "upstream-freebsd/lib/msun/src/s_erf.c", 125 "upstream-freebsd/lib/msun/src/s_erff.c", 126 "upstream-freebsd/lib/msun/src/s_expm1.c", 127 "upstream-freebsd/lib/msun/src/s_expm1f.c", 128 "upstream-freebsd/lib/msun/src/s_fdim.c", 129 "upstream-freebsd/lib/msun/src/s_finite.c", 130 "upstream-freebsd/lib/msun/src/s_finitef.c", 131 "upstream-freebsd/lib/msun/src/s_fma.c", 132 "upstream-freebsd/lib/msun/src/s_fmaf.c", 133 "upstream-freebsd/lib/msun/src/s_fmax.c", 134 "upstream-freebsd/lib/msun/src/s_fmaxf.c", 135 "upstream-freebsd/lib/msun/src/s_fmin.c", 136 "upstream-freebsd/lib/msun/src/s_fminf.c", 137 "upstream-freebsd/lib/msun/src/s_frexp.c", 138 "upstream-freebsd/lib/msun/src/s_frexpf.c", 139 "upstream-freebsd/lib/msun/src/s_ilogb.c", 140 "upstream-freebsd/lib/msun/src/s_ilogbf.c", 141 "upstream-freebsd/lib/msun/src/s_llrint.c", 142 "upstream-freebsd/lib/msun/src/s_llrintf.c", 143 "upstream-freebsd/lib/msun/src/s_llround.c", 144 "upstream-freebsd/lib/msun/src/s_llroundf.c", 145 "upstream-freebsd/lib/msun/src/s_log1p.c", 146 "upstream-freebsd/lib/msun/src/s_log1pf.c", 147 "upstream-freebsd/lib/msun/src/s_logb.c", 148 "upstream-freebsd/lib/msun/src/s_logbf.c", 149 "upstream-freebsd/lib/msun/src/s_lrint.c", 150 "upstream-freebsd/lib/msun/src/s_lrintf.c", 151 "upstream-freebsd/lib/msun/src/s_lround.c", 152 "upstream-freebsd/lib/msun/src/s_lroundf.c", 153 "upstream-freebsd/lib/msun/src/s_modf.c", 154 "upstream-freebsd/lib/msun/src/s_modff.c", 155 "upstream-freebsd/lib/msun/src/s_nan.c", 156 "upstream-freebsd/lib/msun/src/s_nearbyint.c", 157 "upstream-freebsd/lib/msun/src/s_nextafter.c", 158 "upstream-freebsd/lib/msun/src/s_nextafterf.c", 159 "upstream-freebsd/lib/msun/src/s_remquo.c", 160 "upstream-freebsd/lib/msun/src/s_remquof.c", 161 "upstream-freebsd/lib/msun/src/s_rint.c", 162 "upstream-freebsd/lib/msun/src/s_rintf.c", 163 "upstream-freebsd/lib/msun/src/s_round.c", 164 "upstream-freebsd/lib/msun/src/s_roundf.c", 165 "upstream-freebsd/lib/msun/src/s_scalbln.c", 166 "upstream-freebsd/lib/msun/src/s_scalbn.c", 167 "upstream-freebsd/lib/msun/src/s_scalbnf.c", 168 "upstream-freebsd/lib/msun/src/s_signgam.c", 169 "upstream-freebsd/lib/msun/src/s_significand.c", 170 "upstream-freebsd/lib/msun/src/s_significandf.c", 171 "upstream-freebsd/lib/msun/src/s_sin.c", 172 "upstream-freebsd/lib/msun/src/s_sinpi.c", 173 "upstream-freebsd/lib/msun/src/s_sincos.c", 174 "upstream-freebsd/lib/msun/src/s_tan.c", 175 "upstream-freebsd/lib/msun/src/s_tanf.c", 176 "upstream-freebsd/lib/msun/src/s_tanh.c", 177 "upstream-freebsd/lib/msun/src/s_tanhf.c", 178 "upstream-freebsd/lib/msun/src/s_tgammaf.c", 179 "upstream-freebsd/lib/msun/src/s_trunc.c", 180 "upstream-freebsd/lib/msun/src/s_truncf.c", 181 "upstream-freebsd/lib/msun/src/w_cabs.c", 182 "upstream-freebsd/lib/msun/src/w_cabsf.c", 183 "upstream-freebsd/lib/msun/src/w_cabsl.c", 184 "upstream-freebsd/lib/msun/src/w_drem.c", 185 "upstream-freebsd/lib/msun/src/w_dremf.c", 186 187 // The FreeBSD complex functions appear to be better, but they're incomplete. 188 // We take the FreeBSD implementations when they exist, but fill out the rest 189 // of <complex.h> from NetBSD... 190 "upstream-netbsd/lib/libm/complex/ccoshl.c", 191 "upstream-netbsd/lib/libm/complex/ccosl.c", 192 "upstream-netbsd/lib/libm/complex/cephes_subrl.c", 193 "upstream-netbsd/lib/libm/complex/cexpl.c", 194 "upstream-netbsd/lib/libm/complex/csinhl.c", 195 "upstream-netbsd/lib/libm/complex/csinl.c", 196 "upstream-netbsd/lib/libm/complex/ctanhl.c", 197 "upstream-netbsd/lib/libm/complex/ctanl.c", 198 199 // TODO: this comes from from upstream's libc, not libm, but it's an 200 // implementation detail that should have hidden visibility, so it needs 201 // to be in whatever library the math code is in. 202 "digittoint.c", 203 204 // Functionality not in the BSDs. 205 "significandl.c", 206 "fake_long_double.c", 207 208 // Home-grown stuff. 209 "builtins.cpp", 210 "signbit.cpp", 211 ], 212 213 multilib: { 214 lib64: { 215 srcs: [ 216 "upstream-freebsd/lib/msun/src/catrigl.c", 217 "upstream-freebsd/lib/msun/src/e_acosl.c", 218 "upstream-freebsd/lib/msun/src/e_acoshl.c", 219 "upstream-freebsd/lib/msun/src/e_asinl.c", 220 "upstream-freebsd/lib/msun/src/e_atan2l.c", 221 "upstream-freebsd/lib/msun/src/e_atanhl.c", 222 "upstream-freebsd/lib/msun/src/e_fmodl.c", 223 "upstream-freebsd/lib/msun/src/e_hypotl.c", 224 "upstream-freebsd/lib/msun/src/e_lgammal.c", 225 "upstream-freebsd/lib/msun/src/e_remainderl.c", 226 "upstream-freebsd/lib/msun/src/e_sqrtl.c", 227 "upstream-freebsd/lib/msun/src/s_asinhl.c", 228 "upstream-freebsd/lib/msun/src/s_atanl.c", 229 "upstream-freebsd/lib/msun/src/s_cbrtl.c", 230 "upstream-freebsd/lib/msun/src/s_ceill.c", 231 "upstream-freebsd/lib/msun/src/s_clogl.c", 232 "upstream-freebsd/lib/msun/src/e_coshl.c", 233 "upstream-freebsd/lib/msun/src/s_cosl.c", 234 "upstream-freebsd/lib/msun/src/s_csqrtl.c", 235 "upstream-freebsd/lib/msun/src/s_floorl.c", 236 "upstream-freebsd/lib/msun/src/s_fmal.c", 237 "upstream-freebsd/lib/msun/src/s_fmaxl.c", 238 "upstream-freebsd/lib/msun/src/s_fminl.c", 239 "upstream-freebsd/lib/msun/src/s_modfl.c", 240 "upstream-freebsd/lib/msun/src/s_frexpl.c", 241 "upstream-freebsd/lib/msun/src/s_ilogbl.c", 242 "upstream-freebsd/lib/msun/src/s_llrintl.c", 243 "upstream-freebsd/lib/msun/src/s_llroundl.c", 244 "upstream-freebsd/lib/msun/src/s_logbl.c", 245 "upstream-freebsd/lib/msun/src/s_lrintl.c", 246 "upstream-freebsd/lib/msun/src/s_lroundl.c", 247 "upstream-freebsd/lib/msun/src/s_nextafterl.c", 248 "upstream-freebsd/lib/msun/src/s_nexttoward.c", 249 "upstream-freebsd/lib/msun/src/s_nexttowardf.c", 250 "upstream-freebsd/lib/msun/src/s_remquol.c", 251 "upstream-freebsd/lib/msun/src/s_rintl.c", 252 "upstream-freebsd/lib/msun/src/s_roundl.c", 253 "upstream-freebsd/lib/msun/src/s_scalbnl.c", 254 "upstream-freebsd/lib/msun/src/s_sincosl.c", 255 "upstream-freebsd/lib/msun/src/e_sinhl.c", 256 "upstream-freebsd/lib/msun/src/s_sinl.c", 257 "upstream-freebsd/lib/msun/src/s_tanhl.c", 258 "upstream-freebsd/lib/msun/src/s_tanl.c", 259 "upstream-freebsd/lib/msun/src/s_truncl.c", 260 261 "upstream-freebsd/lib/msun/ld128/invtrig.c", 262 "upstream-freebsd/lib/msun/ld128/e_lgammal_r.c", 263 "upstream-freebsd/lib/msun/ld128/e_powl.c", 264 "upstream-freebsd/lib/msun/ld128/k_cosl.c", 265 "upstream-freebsd/lib/msun/ld128/k_sinl.c", 266 "upstream-freebsd/lib/msun/ld128/k_tanl.c", 267 "upstream-freebsd/lib/msun/ld128/s_erfl.c", 268 "upstream-freebsd/lib/msun/ld128/s_exp2l.c", 269 "upstream-freebsd/lib/msun/ld128/s_expl.c", 270 "upstream-freebsd/lib/msun/ld128/s_logl.c", 271 "upstream-freebsd/lib/msun/ld128/s_nanl.c", 272 ], 273 local_include_dirs: ["upstream-freebsd/lib/msun/ld128/"], 274 }, 275 }, 276 277 arch: { 278 arm: { 279 srcs: [ 280 "arm/fenv.c", 281 "upstream-freebsd/lib/msun/src/s_ceil.c", 282 "upstream-freebsd/lib/msun/src/s_ceilf.c", 283 ], 284 instruction_set: "arm", 285 pack_relocations: false, 286 ldflags: ["-Wl,--hash-style=both"], 287 version_script: ":libm.arm.map", 288 no_libcrt: true, 289 shared: { 290 // For backwards-compatibility, some arm32 builtins are exported from libm.so. 291 static_libs: ["libclang_rt.builtins-exported"], 292 }, 293 // "#pragma STDC FENV_ACCESS ON" in e_sqrtl.c is not supported for arm32. 294 cflags: ["-Wno-ignored-pragmas"], 295 }, 296 297 arm64: { 298 srcs: [ 299 "arm64/fenv.c", 300 ], 301 exclude_srcs: [ 302 "upstream-freebsd/lib/msun/src/s_fma.c", 303 "upstream-freebsd/lib/msun/src/s_fmaf.c", 304 "upstream-freebsd/lib/msun/src/s_fmax.c", 305 "upstream-freebsd/lib/msun/src/s_fmaxf.c", 306 "upstream-freebsd/lib/msun/src/s_fmin.c", 307 "upstream-freebsd/lib/msun/src/s_fminf.c", 308 "upstream-freebsd/lib/msun/src/s_llrint.c", 309 "upstream-freebsd/lib/msun/src/s_llrintf.c", 310 "upstream-freebsd/lib/msun/src/s_llround.c", 311 "upstream-freebsd/lib/msun/src/s_llroundf.c", 312 "upstream-freebsd/lib/msun/src/s_lrint.c", 313 "upstream-freebsd/lib/msun/src/s_lrintf.c", 314 "upstream-freebsd/lib/msun/src/s_lround.c", 315 "upstream-freebsd/lib/msun/src/s_lroundf.c", 316 "upstream-freebsd/lib/msun/src/s_rint.c", 317 "upstream-freebsd/lib/msun/src/s_rintf.c", 318 "upstream-freebsd/lib/msun/src/s_round.c", 319 "upstream-freebsd/lib/msun/src/s_roundf.c", 320 "upstream-freebsd/lib/msun/src/s_trunc.c", 321 "upstream-freebsd/lib/msun/src/s_truncf.c", 322 ], 323 version_script: ":libm.arm64.map", 324 }, 325 326 riscv64: { 327 srcs: [ 328 "riscv64/fenv.c", 329 ], 330 331 exclude_srcs: [ 332 "upstream-freebsd/lib/msun/src/s_fma.c", 333 "upstream-freebsd/lib/msun/src/s_fmaf.c", 334 "upstream-freebsd/lib/msun/src/s_fmax.c", 335 "upstream-freebsd/lib/msun/src/s_fmaxf.c", 336 "upstream-freebsd/lib/msun/src/s_fmin.c", 337 "upstream-freebsd/lib/msun/src/s_fminf.c", 338 "upstream-freebsd/lib/msun/src/s_llrint.c", 339 "upstream-freebsd/lib/msun/src/s_llrintf.c", 340 "upstream-freebsd/lib/msun/src/s_llround.c", 341 "upstream-freebsd/lib/msun/src/s_llroundf.c", 342 "upstream-freebsd/lib/msun/src/s_lrint.c", 343 "upstream-freebsd/lib/msun/src/s_lrintf.c", 344 "upstream-freebsd/lib/msun/src/s_lround.c", 345 "upstream-freebsd/lib/msun/src/s_lroundf.c", 346 "upstream-freebsd/lib/msun/src/s_rint.c", 347 "upstream-freebsd/lib/msun/src/s_rintf.c", 348 "upstream-freebsd/lib/msun/src/s_round.c", 349 "upstream-freebsd/lib/msun/src/s_roundf.c", 350 "upstream-freebsd/lib/msun/src/s_trunc.c", 351 "upstream-freebsd/lib/msun/src/s_truncf.c", 352 ], 353 version_script: ":libm.riscv64.map", 354 }, 355 356 x86: { 357 srcs: [ 358 "i387/fenv.c", 359 "x86/lrint.S", 360 "x86/lrintf.S", 361 ], 362 exclude_srcs: [ 363 "upstream-freebsd/lib/msun/src/s_lrint.c", 364 "upstream-freebsd/lib/msun/src/s_lrintf.c", 365 "upstream-freebsd/lib/msun/src/s_rint.c", 366 "upstream-freebsd/lib/msun/src/s_rintf.c", 367 "upstream-freebsd/lib/msun/src/s_trunc.c", 368 "upstream-freebsd/lib/msun/src/s_truncf.c", 369 ], 370 local_include_dirs: ["i387"], 371 pack_relocations: false, 372 // The x86 ABI doesn't include this, which is needed for the 373 // roundss/roundsd instructions that we've used since Android M. 374 cflags: ["-msse4.1"], 375 ldflags: ["-Wl,--hash-style=both"], 376 version_script: ":libm.x86.map", 377 }, 378 379 x86_64: { 380 srcs: [ 381 "amd64/fenv.c", 382 "x86_64/lrint.S", 383 "x86_64/lrintf.S", 384 ], 385 exclude_srcs: [ 386 "upstream-freebsd/lib/msun/src/s_llrint.c", 387 "upstream-freebsd/lib/msun/src/s_llrintf.c", 388 "upstream-freebsd/lib/msun/src/s_lrint.c", 389 "upstream-freebsd/lib/msun/src/s_lrintf.c", 390 "upstream-freebsd/lib/msun/src/s_rint.c", 391 "upstream-freebsd/lib/msun/src/s_rintf.c", 392 "upstream-freebsd/lib/msun/src/s_trunc.c", 393 "upstream-freebsd/lib/msun/src/s_truncf.c", 394 ], 395 version_script: ":libm.x86_64.map", 396 }, 397 }, 398 399 local_include_dirs: [ 400 "upstream-freebsd/android/include/", 401 "upstream-freebsd/lib/msun/src/", 402 ], 403 404 cflags: [ 405 "-D_BSD_SOURCE", 406 "-DFLT_EVAL_METHOD=0", 407 "-include freebsd-compat.h", 408 "-include fenv-access.h", 409 "-fno-builtin", 410 "-fno-math-errno", 411 "-Wall", 412 "-Werror", 413 "-Wno-missing-braces", 414 "-Wno-parentheses", 415 "-Wno-sign-compare", 416 "-Wno-static-in-inline", 417 "-Wno-unknown-pragmas", 418 "-Wno-unused-const-variable", 419 "-Wno-unused-variable", 420 ], 421 422 ldflags: [ 423 "-Wl,--Bsymbolic-functions", 424 ], 425 426 // b/120614316, non-critical readibility check 427 tidy_checks: ["-cert-dcl16-c"], 428 429 include_dirs: ["bionic/libc"], 430 target: { 431 bionic: { 432 system_shared_libs: ["libc"], 433 }, 434 }, 435 436 sanitize: { 437 address: false, 438 fuzzer: false, 439 integer_overflow: false, 440 }, 441 stl: "none", 442 native_bridge_supported: true, 443 444 stubs: { 445 symbol_file: "libm.map.txt", 446 versions: [ 447 "29", 448 "current", 449 ], 450 }, 451 452 llndk: { 453 symbol_file: "libm.map.txt", 454 }, 455 456 apex_available: [ 457 "//apex_available:platform", 458 "com.android.runtime", 459 ], 460 461 lto: { 462 never: true, 463 }, 464} 465 466ndk_library { 467 name: "libm", 468 symbol_file: "libm.map.txt", 469 first_version: "9", 470} 471 472genrule { 473 name: "libm.arm.map", 474 out: ["libm.arm.map.txt"], 475 srcs: ["libm.map.txt"], 476 tools: ["generate-version-script"], 477 cmd: "$(location generate-version-script) arm $(in) $(out)", 478} 479 480genrule { 481 name: "libm.arm64.map", 482 out: ["libm.arm64.map.txt"], 483 srcs: ["libm.map.txt"], 484 tools: ["generate-version-script"], 485 cmd: "$(location generate-version-script) arm64 $(in) $(out)", 486} 487 488genrule { 489 name: "libm.riscv64.map", 490 out: ["libm.riscv64.map.txt"], 491 srcs: ["libm.map.txt"], 492 tools: ["generate-version-script"], 493 cmd: "$(location generate-version-script) riscv64 $(in) $(out)", 494} 495 496genrule { 497 name: "libm.x86.map", 498 out: ["libm.x86.map.txt"], 499 srcs: ["libm.map.txt"], 500 tools: ["generate-version-script"], 501 cmd: "$(location generate-version-script) x86 $(in) $(out)", 502} 503 504genrule { 505 name: "libm.x86_64.map", 506 out: ["libm.x86_64.map.txt"], 507 srcs: ["libm.map.txt"], 508 tools: ["generate-version-script"], 509 cmd: "$(location generate-version-script) x86_64 $(in) $(out)", 510} 511 512filegroup { 513 name: "libc_ldexp_srcs", 514 srcs: ["upstream-freebsd/lib/msun/src/s_scalbn.c"], 515} 516