mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-19 20:59:03 +02:00
u-boot-rockchip: fix for binutils-2.28
The recent upgrade from binutils-2.27 to binutils-2.28 on openembedded-core caused a build failure for u-boot-rockchip: arm-oe-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N Linking with -N fixes the issue. This patch adds that flag to the build so it succeeds. This has been build-tested, as well as run-tested on the firefly-rk3288. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
parent
c912889014
commit
57b8048022
13
recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch
Normal file
13
recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: git/arch/arm/config.mk
|
||||
===================================================================
|
||||
--- git.orig/arch/arm/config.mk
|
||||
+++ git/arch/arm/config.mk
|
||||
@@ -89,7 +89,7 @@ PLATFORM_LIBS := arch/arm/lib/eabi_compa
|
||||
endif
|
||||
|
||||
# needed for relocation
|
||||
-LDFLAGS_u-boot += -pie
|
||||
+LDFLAGS_u-boot += -N -pie
|
||||
|
||||
#
|
||||
# FIXME: binutils versions < 2.22 have a bug in the assembler where
|
|
@ -11,7 +11,10 @@ COMPATIBLE_MACHINE = "(firefly-rk3288)"
|
|||
|
||||
DEPENDS = "dtc-native bc-native"
|
||||
|
||||
SRC_URI = "git://github.com/rockchip-linux/u-boot.git;branch=release;"
|
||||
SRC_URI = " \
|
||||
git://github.com/rockchip-linux/u-boot.git;branch=release; \
|
||||
file://binutils-2.28-ld-fix.patch \
|
||||
"
|
||||
SRCREV = "${AUTOREV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user