From: Trevor Woerner <twoerner@gmail.com>
To: yocto@yoctoproject.org
Subject: [meta-rockchip][PATCH] u-boot-rockchip: fix for binutils-2.28
Date: Wed, 8 Mar 2017 12:31:47 -0500 [thread overview]
Message-ID: <20170308173147.21841-1-twoerner@gmail.com> (raw)
openembedded-core updated bintuils from 2.27 to 2.28 which causes u-boot to
fail to compile:
arm-oe-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N
Building with -N does fix the issue, so this patch simply adds that flag to
the build so it succeeds.
This has been build-tested, as well as run-tested on the firefly.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch | 13 +++++++++++++
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 5 ++++-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch
diff --git a/recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch b/recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch
new file mode 100644
index 0000000..9dfc463
--- /dev/null
+++ b/recipes-bsp/u-boot/files/binutils-2.28-ld-fix.patch
@@ -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
diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
index 3b4f109..4887d5d 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -9,7 +9,10 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
COMPATIBLE_MACHINE = "(firefly-rk3288)"
-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"
--
2.12.0.rc1.48.g076c053
next reply other threads:[~2017-03-08 17:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 17:31 Trevor Woerner [this message]
2017-03-08 23:28 ` [meta-rockchip][PATCH] u-boot-rockchip: fix for binutils-2.28 Tom Rini
2017-03-08 23:42 ` Khem Raj
2017-03-09 0:01 ` Tom Rini
2017-03-09 0:51 ` Khem Raj
2017-03-09 5:01 ` Trevor Woerner
2017-03-09 5:33 ` Khem Raj
2017-03-09 14:19 ` Trevor Woerner
2017-03-09 4:42 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170308173147.21841-1-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.