Enable gold linker for aarch64.
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: I0ef2483e1c47c34e63292dad6f6bf532359b733e
This commit is contained in:
parent
ac39bef43f
commit
127d110172
|
@ -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 New Issue