platform_build_soong/cc
Colin Cross dea1d03975 Fix addrsig warnings
ld -r reorders symbols and invalidates the .llvm_addrsig section, which
then causes warnings if the resulting object is used with ld --icf=safe.
The warning is especially common when building with musl, as the
clang_rt.crt* objects have .llvm_addrsig sections, are linked into
libc_musl_crt* using ld -r, and are then linked into every other binary
and shared library with --icf=safe.

Strip the .llvm_addrsig section after ld -r to prevent the warnings.

Test: m USE_HOST_MUSL=true host-native -k
Change-Id: Ia52a4756b9ebbb62115898d0de9f8641e6fea705
2023-04-14 14:31:14 -07:00
..
config Extract out Visibility flags 2023-04-11 13:41:17 +00:00
libbuildversion
ndk_api_coverage_parser Remove OWNERS access for non-build team people to core build system 2023-02-28 19:29:47 -08:00
ndkstubgen Add --no-ndk to ndkstubgen 2022-10-05 09:06:49 +09:00
symbolfile Add riscv64. 2022-10-10 15:33:50 +00:00
afdo.go Prepend AFDO flags to allow overriding 2023-04-05 11:49:19 +09:00
afdo_test.go Reimplement afdo support for rust 2023-03-31 17:55:16 -04:00
Android.bp Implement fdo_profile module type 2023-03-31 17:52:01 -04:00
androidmk.go Prevent sdk variants from install 2023-02-22 13:45:49 +09:00
api_level.go Disable VNDK apexes for unsupported API levels 2023-01-27 19:49:38 +00:00
binary.go Use installExecutable for cc binaries 2023-03-21 01:42:59 +00:00
binary_sdk_member.go
binary_test.go Export Soong module type to LOCAL_SOONG_MODULE_TYPE to Make for SBOM generation. 2023-03-06 22:51:03 +00:00
bp2build.go rename aidl/library.bzl to aidl/aidl_library.bzl 2023-03-31 09:48:27 -04:00
builder.go Fix addrsig warnings 2023-04-14 14:31:14 -07:00
cc.go Implement fdo_profile module type 2023-03-31 17:52:01 -04:00
cc_test.go Disable flaky test temporarily 2023-03-27 10:06:02 -04:00
ccdeps.go
check.go Allow "-mllvm foo" cflags 2023-03-12 16:31:10 +09:00
cmakelists.go
compdb.go
compiler.go Delete __ANDROID_APEX_MIN_SDK_VERSION__ from Soong 2023-01-20 00:14:48 -05:00
compiler_test.go
coverage.go Make filesystem aware of coverage 2023-03-16 13:11:17 +09:00
fdo_profile.go Reimplement afdo support for rust 2023-03-31 17:55:16 -04:00
fuzz.go Copy Rust fuzzer dependencies to /data. 2023-02-06 13:48:23 -05:00
gen.go Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
gen_test.go Write Soong tests to confirm Sysprop directories 2022-08-29 18:46:50 +00:00
genrule.go soong: add os name to cc_genrule 2022-12-01 20:01:03 +00:00
genrule_test.go Make cc_genrule.srcs configurable. 2022-10-19 12:35:26 -07:00
image.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
image_sdk_traits.go
installer.go Use installExecutable for cc binaries 2023-03-21 01:42:59 +00:00
kernel_headers.go
library.go Revert "Revert "Fix NDK library sysroot arrangement."" 2023-04-04 23:27:15 +00:00
library_headers.go Support DCLA 2023-02-21 10:12:47 -08:00
library_headers_test.go Make more cc tests parallel 2022-12-05 13:43:29 -05:00
library_sdk_member.go Replace SortedStringKeys with SortedKeys 2023-02-28 16:51:32 -08:00
library_stub.go Implement API surface import with APEX stub 2023-02-27 12:57:30 +09:00
library_stub_test.go Implement API surface import with APEX stub 2023-02-27 12:57:30 +09:00
library_test.go Export Soong module type to LOCAL_SOONG_MODULE_TYPE to Make for SBOM generation. 2023-03-06 22:51:03 +00:00
linkable.go Copy Rust fuzzer dependencies to /data. 2023-02-06 13:48:23 -05:00
linker.go Supporting changes for CFI toolchain features 2023-03-27 18:07:40 +00:00
llndk_library.go
lto.go Revert "Build riscv64 with thin LTO" 2023-02-15 01:32:22 +00:00
lto_test.go Add test that LTO isn't propagated to runtime_libs 2023-02-10 20:29:20 +00:00
makevars.go Add noOverride64GlobalCflags support to Soong 2023-01-25 04:02:29 +00:00
native_bridge_sdk_trait.go
ndk_abi.go
ndk_headers.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
ndk_library.go Revert "Revert "Fix NDK library sysroot arrangement."" 2023-04-04 23:27:15 +00:00
ndk_prebuilt.go Remove dead code. 2023-03-28 23:13:16 +00:00
ndk_sysroot.go Include NDK CRT object variants in the sysroot. 2023-04-04 23:27:15 +00:00
ndk_test.go Add a property in ndk_library for header contributions 2022-08-30 18:24:40 +00:00
object.go Fix addrsig warnings 2023-04-14 14:31:14 -07:00
object_test.go Include NDK CRT object variants in the sysroot. 2023-04-04 23:27:15 +00:00
OWNERS Remove OWNERS access for non-build team people to core build system 2023-02-28 19:29:47 -08:00
pgo.go Remove sampling profile support from pgo rule 2022-06-07 15:23:08 +08:00
prebuilt.go Do not install prebuilt stubs from module_sdk 2023-03-28 18:19:04 +09:00
prebuilt_test.go Do not install prebuilt stubs from module_sdk 2023-03-28 18:19:04 +09:00
proto.go add APEX transitive dependency validation 2022-12-13 14:32:19 -05:00
proto_test.go
pylintrc
rs.go
sabi.go Add header_abi_checker properties for vendor, product, and platform 2022-12-28 18:50:38 +08:00
sanitize.go Merge "Temporarily disable shadow call stack for riscv64." 2023-04-13 01:47:42 +00:00
sanitize_test.go Use static asan runtime for musl 2023-03-22 12:58:39 -07:00
sdk.go Implement API surface import with APEX stub 2023-02-27 12:57:30 +09:00
sdk_test.go Prevent sdk variants from install 2023-02-22 13:45:49 +09:00
snapshot_prebuilt.go Fix the make name of rust snapshots 2023-03-16 11:05:41 +09:00
snapshot_utils.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
stl.go Use platform libc++ for riscv64 sdk variants 2023-01-26 15:40:58 -08:00
strip.go Revert "Disable stripping for riscv64" 2022-11-11 00:59:14 +00:00
stub_library.go Replace SortedStringKeys with SortedKeys 2023-02-28 16:51:32 -08:00
sysprop.go Add apex_available tags for sysprop modules 2023-03-24 13:08:43 -04:00
test.go mixed build targets need transitive tidy files 2023-02-07 16:50:30 -05:00
test_data_test.go
testing.go Reimplement afdo support for rust 2023-03-31 17:55:16 -04:00
tidy.go export clang-tidy extraArgFlags to Bazel 2022-11-10 14:35:23 -05:00
tidy_test.go Prepare to obsolete -warnings-as-errors in tidy_flags 2022-06-12 20:25:43 -07:00
util.go Replace SortedStringKeys with SortedKeys 2023-02-28 16:51:32 -08:00
vendor_public_library.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
vendor_public_library_test.go
vendor_snapshot.go VSDK: capture hwasan static libs for vsdk snapshot build 2022-12-19 17:18:22 +09:00
vendor_snapshot_test.go Disable sanitizer for vendor_snapshot_object modules 2022-12-19 23:04:08 +09:00
vndk.go Include license texts and kinds for VNDK snapshot 2023-04-07 20:13:19 +09:00
vndk_prebuilt.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00