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:
Trevor Woerner 2017-03-15 10:29:49 -04:00
parent c912889014
commit 57b8048022
2 changed files with 17 additions and 1 deletions

View 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

View File

@ -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"