Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b205b461 authored by Pavel Chupin's avatar Pavel Chupin
Browse files

Use gold linker on x86



Patch removes fallback -fuse-ld=bfd for x86 target and
--copy-dt-needed-entries which is not supported by gold linker.

Change-Id: Ie5603f98e3f2f9d4f81678c718e39b130a75d057
Signed-off-by: default avatarPavel Chupin <pavel.v.chupin@intel.com>
parent 68559da0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -186,14 +186,11 @@ $(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 $@ \