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

Commit b7391efb authored by Andrew Hsieh's avatar Andrew Hsieh Committed by android code review
Browse files

Merge "Add -fuse-ld=bfd to x86 target"

parents 297d6c02 bae121af
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 $@ \