GCC 6.3 Linker error

Daniel Schultz d.schultz at phytec.de
Fri May 5 08:11:30 PDT 2017

Hi everyone,

when I build the Barebox with GCC 6.3 and am335x_defconfig, I get the 
following error:

|   LD      commands/built-in.o
|   LD      drivers/usb/built-in.o
|   PBLLD   drivers/usb/built-in-pbl.o
|   LD      fs/built-in.o
|   PBLLD   fs/built-in-pbl.o
|   LD      drivers/mtd/ubi/built-in.o
|   LD      drivers/mtd/built-in.o
|   PBLLD   drivers/mtd/built-in-pbl.o
|   LD      drivers/built-in.o
|   PBLLD   drivers/built-in-pbl.o
|   GEN     .version
|   CHK     include/generated/compile.h
|   UPD     include/generated/compile.h
|   CC      common/version.o
|   LD      common/built-in.o
|   LD      .tmp_barebox1
| arm-phytec-linux-gnueabi-ld: .tmp_barebox1: Not enough room for 
program headers, try linking with -N
| arm-phytec-linux-gnueabi-ld: final link failed: Bad value
| make[2]: *** [.tmp_barebox1] Error 1
| make[1]: *** [_all] Error 2
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at 
ERROR: Task 
failed with exit code '1'
NOTE: Tasks Summary: Attempted 497 tasks of which 495 didn't need to be 
rerun and 1 failed.
NOTE: Writing buildhistory

has somebody else faced with this problem? I figured out that linking 
with "-nmagic" fix this problem.

Mit freundlichen Grüßen,
With best regards,
   Daniel Schultz

More information about the barebox mailing list