Enable gold linker for aarch64.
[Second attempt, this time with updated mac prebuilt] Switches default linker from -fuse-ld-bfd to -fuse-ld=gold, and enables -Wl,--icf=safe. This changes reduces /system/lib64/*.so text size by about 2% for N9. Change-Id: I587075aae9d70cb6b16e55dc9cd1052580ac2626
This commit is contained in:
parent
b18da85cb6
commit
a7f68ee9ea
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,8 @@ TARGET_GLOBAL_LDFLAGS += \
|
|||
-Wl,-maarch64linux \
|
||||
-Wl,--hash-style=gnu \
|
||||
-Wl,--fix-cortex-a53-843419 \
|
||||
-fuse-ld=gold \
|
||||
-Wl,--icf=safe \
|
||||
$(arch_variant_ldflags)
|
||||
|
||||
# Disable transitive dependency library symbol resolving.
|
||||
|
|
Loading…
Reference in a new issue