[U-Boot] [v2017.03] firefly-rk3288 link failure

Hello,
In v2017.03 the firefly-rk3288 target fails to link with our gcc 6.3.1. I've tried gcc 7.0.1 (CC=gcc-7), but no change.
[ 99s] LD u-boot [ 99s] ld.bfd: u-boot: Not enough room for program headers, try linking with -N [ 99s] ld.bfd: final link failed: Bad value [ 99s] make: *** [Makefile:1206: u-boot] Error 1
This is a regression from v2017.01.
Is there a known fix or workaround?
Thanks, Andreas

Am 09.04.2017 um 15:21 schrieb Andreas Färber:
Hello,
In v2017.03 the firefly-rk3288 target fails to link with our gcc 6.3.1. I've tried gcc 7.0.1 (CC=gcc-7), but no change.
[ 99s] LD u-boot [ 99s] ld.bfd: u-boot: Not enough room for program headers, try linking with -N [ 99s] ld.bfd: final link failed: Bad value [ 99s] make: *** [Makefile:1206: u-boot] Error 1
Just checked: Same issue with tinker-rk3288.
Is there a known fix or workaround?
Thanks, Andreas

On Sun, Apr 09, 2017 at 03:33:47PM +0200, Andreas Färber wrote:
Am 09.04.2017 um 15:21 schrieb Andreas Färber:
Hello,
In v2017.03 the firefly-rk3288 target fails to link with our gcc 6.3.1. I've tried gcc 7.0.1 (CC=gcc-7), but no change.
[ 99s] LD u-boot [ 99s] ld.bfd: u-boot: Not enough room for program headers, try linking with -N [ 99s] ld.bfd: final link failed: Bad value [ 99s] make: *** [Makefile:1206: u-boot] Error 1
Just checked: Same issue with tinker-rk3288.
Is there a known fix or workaround?
Yes, we need someone to do the equivalent of https://patchwork.ozlabs.org/patch/699815/ for U-Boot (which is easier since we can rely on ld-version). I'm pretty sure when we talked about this last, no one followed up with a patch. But maybe I'm just forgetting?

On Sun, Apr 09, 2017 at 02:02:56PM -0400, Tom Rini wrote:
On Sun, Apr 09, 2017 at 03:33:47PM +0200, Andreas Färber wrote:
Am 09.04.2017 um 15:21 schrieb Andreas Färber:
Hello,
In v2017.03 the firefly-rk3288 target fails to link with our gcc 6.3.1. I've tried gcc 7.0.1 (CC=gcc-7), but no change.
[ 99s] LD u-boot [ 99s] ld.bfd: u-boot: Not enough room for program headers, try linking with -N [ 99s] ld.bfd: final link failed: Bad value [ 99s] make: *** [Makefile:1206: u-boot] Error 1
Just checked: Same issue with tinker-rk3288.
Is there a known fix or workaround?
Yes, we need someone to do the equivalent of https://patchwork.ozlabs.org/patch/699815/ for U-Boot (which is easier since we can rely on ld-version). I'm pretty sure when we talked about this last, no one followed up with a patch. But maybe I'm just forgetting?
Yes, I am forgetting. We have https://patchwork.ozlabs.org/patch/706336/ where I asked for some changes and no v3 happened.

Am 09.04.2017 um 20:04 schrieb Tom Rini:
On Sun, Apr 09, 2017 at 02:02:56PM -0400, Tom Rini wrote:
On Sun, Apr 09, 2017 at 03:33:47PM +0200, Andreas Färber wrote:
Am 09.04.2017 um 15:21 schrieb Andreas Färber:
Hello,
In v2017.03 the firefly-rk3288 target fails to link with our gcc 6.3.1. I've tried gcc 7.0.1 (CC=gcc-7), but no change.
[ 99s] LD u-boot [ 99s] ld.bfd: u-boot: Not enough room for program headers, try linking with -N [ 99s] ld.bfd: final link failed: Bad value [ 99s] make: *** [Makefile:1206: u-boot] Error 1
Just checked: Same issue with tinker-rk3288.
Is there a known fix or workaround?
Yes, we need someone to do the equivalent of https://patchwork.ozlabs.org/patch/699815/ for U-Boot (which is easier since we can rely on ld-version). I'm pretty sure when we talked about this last, no one followed up with a patch. But maybe I'm just forgetting?
Yes, I am forgetting. We have https://patchwork.ozlabs.org/patch/706336/ where I asked for some changes and no v3 happened.
I've tested it on v2017.03 with the addition you requested, and sent a v3. I took the liberty to fix the grammar in one sentence, otherwise unchanged.
Thanks, Andreas
participants (2)
-
Andreas Färber
-
Tom Rini