Re: [U-Boot] [PATCH] Makefile: Fix linking with modern binutils

2016-12-08 Thread Simon Glass
On 7 December 2016 at 22:22, Joel Stanley wrote: > Since Binutils 1a9ccd70f9a7[1] u-boot will not link targets that set > CONFIG_SYS_TEXT_BASE=0 with the following error: > > LD u-boot > arm-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try > linking with -N > arm-linu

Re: [U-Boot] [PATCH] Makefile: Fix linking with modern binutils

2016-12-08 Thread Alan Modra
On Thu, Dec 08, 2016 at 02:22:51PM +1100, Joel Stanley wrote: > error, we are technically creating invalid ELF files without this > option. I don't think you were creating invalid ELF files, just unusual ones. Anyway, passing --no-dynamic-linker is a good idea. That tells ld that the PIE or shar

[U-Boot] [PATCH] Makefile: Fix linking with modern binutils

2016-12-07 Thread Joel Stanley
Since Binutils 1a9ccd70f9a7[1] u-boot will not link targets that set CONFIG_SYS_TEXT_BASE=0 with the following error: LD u-boot arm-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N arm-linux-gnueabi-ld.bfd: final link failed: Bad value The issue can r