diff options
author | Colin Cross <ccross@android.com> | 2021-06-11 18:02:22 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-06-11 18:02:22 -0700 |
commit | 9cfe6119fe9713fd80d5a4c08868000fc6f646ce (patch) | |
tree | 97ec35f73fd959b4dc538dd4c2774c6bf54cb927 /Android.bp | |
parent | cef792e467086e4f398e50ac5a5091ffe9417f19 (diff) | |
download | soong-9cfe6119fe9713fd80d5a4c08868000fc6f646ce.tar.gz |
Use a linker script for host bionic embedded linker sections
Use an implicit linker script instead of flags in a file to specify
the locations of the host bionic embedded linker and to prevent it
from being stripped.
Test: build and run host bionic binary
Change-Id: I64e12118d33c67bab5e657cbc3ea8cde8f0fd7e6
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp index 8f7f3e225..45e661e78 100644 --- a/Android.bp +++ b/Android.bp @@ -92,7 +92,7 @@ cc_genrule { } cc_genrule { - name: "host_bionic_linker_flags", + name: "host_bionic_linker_script", host_supported: true, device_supported: false, target: { @@ -107,9 +107,9 @@ cc_genrule { }, }, tools: ["extract_linker"], - cmd: "$(location) -f $(out) $(in)", + cmd: "$(location) -T $(out) $(in)", srcs: [":linker"], - out: ["linker.flags"], + out: ["linker.script"], } // Instantiate the dex_bootjars singleton module. |