Add -fuse-ld=bfd to x86 target

Add -fuse-ld=bfd because ld.gold doesn't support "--copy-dt-needed-entries".

Change-Id: Ie6fa0a2ddfc57b650552c8cf0891f738a5be0dda
This commit is contained in:
Andrew Hsieh 2012-07-25 00:35:35 -07:00
parent 297d6c02bc
commit bae121afcd
1 changed files with 2 additions and 0 deletions

View File

@ -186,12 +186,14 @@ $(hide) $(PRIVATE_CXX) \
endef
# Add -fuse-ld=bfd because ld.gold doesn't support "--copy-dt-needed-entries".
define transform-o-to-executable-inner
$(hide) $(PRIVATE_CXX) \
$(TARGET_GLOBAL_LDFLAGS) \
-nostdlib -Bdynamic \
-Wl,-dynamic-linker,/system/bin/linker \
-Wl,--copy-dt-needed-entries \
-fuse-ld=bfd \
-Wl,-z,nocopyreloc \
-fPIE -pie \
-o $@ \