summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-12-06 14:50:08 -0800
committer Colin Cross <ccross@android.com> 2023-04-14 14:31:14 -0700
commitdea1d039756fc3aaf334c85c01d4a242e025da78 (patch)
treec8b3b13bd84c2772635a3dbb601cc430f5a1a633 /java/hiddenapi_singleton.go
parent748fd189b5a02bfc9d7c8b5254608ff87b65c62f (diff)
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
Diffstat (limited to 'java/hiddenapi_singleton.go')
0 files changed, 0 insertions, 0 deletions