Merge "Use gold linker on x86"
This commit is contained in:
@@ -186,14 +186,11 @@ $(hide) $(PRIVATE_CXX) \
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
# Add -fuse-ld=bfd because ld.gold doesn't support "--copy-dt-needed-entries".
|
|
||||||
define transform-o-to-executable-inner
|
define transform-o-to-executable-inner
|
||||||
$(hide) $(PRIVATE_CXX) \
|
$(hide) $(PRIVATE_CXX) \
|
||||||
$(TARGET_GLOBAL_LDFLAGS) \
|
$(TARGET_GLOBAL_LDFLAGS) \
|
||||||
-nostdlib -Bdynamic \
|
-nostdlib -Bdynamic \
|
||||||
-Wl,-dynamic-linker,/system/bin/linker \
|
-Wl,-dynamic-linker,/system/bin/linker \
|
||||||
-Wl,--copy-dt-needed-entries \
|
|
||||||
-fuse-ld=bfd \
|
|
||||||
-Wl,-z,nocopyreloc \
|
-Wl,-z,nocopyreloc \
|
||||||
-fPIE -pie \
|
-fPIE -pie \
|
||||||
-o $@ \
|
-o $@ \
|
||||||
|
Reference in New Issue
Block a user