Skip to content

Commit 6d1a620

Browse files
liuyqjforissier
authored andcommitted
mk/gcc.mk: define LD to bfd version by default
In some cases, ld is linked to gold version, and it will cause compiling error for 32bit like following: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-ld: fatal error: --sort-section=alignment: must take one of the following arguments: none, name with the bfd version ld, there will be no such error reported. Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 0ca3529 commit 6d1a620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/gcc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
CC$(sm) := $(CROSS_COMPILE_$(sm))gcc
33
CPP$(sm) := $(CROSS_COMPILE_$(sm))cpp
4-
LD$(sm) := $(CROSS_COMPILE_$(sm))ld
4+
LD$(sm) := $(CROSS_COMPILE_$(sm))ld.bfd
55
AR$(sm) := $(CROSS_COMPILE_$(sm))ar
66
NM$(sm) := $(CROSS_COMPILE_$(sm))nm
77
OBJCOPY$(sm) := $(CROSS_COMPILE_$(sm))objcopy

0 commit comments

Comments
 (0)