OSDN Git Service

Add -fuse-ld=bfd to x86 target
authorAndrew Hsieh <andrewhsieh@google.com>
Wed, 25 Jul 2012 18:06:28 +0000 (11:06 -0700)
committerAndrew Hsieh <andrewhsieh@google.com>
Wed, 25 Jul 2012 18:06:28 +0000 (11:06 -0700)
Add -fuse-ld=bfd because ld.gold doesn't support "--copy-dt-needed-entries".

Change-Id: I4e78967a076b3d093dd55366f7a54f0c9f9a45d1

core/combo/TARGET_linux-x86.mk

index 82c5dc2..bf6daf8 100644 (file)
@@ -185,13 +185,14 @@ $(hide) $(PRIVATE_CXX) \
        $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTEND_SO_O))
 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 $@ \