[coldfire-gnu-discuss] Building Linux for Coldfire V4

Maxim Kuvyrkov maxim at codesourcery.com
Fri May 30 20:49:38 UTC 2008


Markus Königshaus wrote:
> Hello,
> 
> I try to use the Sourcery G++ Lite 4.2-125 edition to build the Linux 
> Kernel 2.6.23 for the MCF54455 Coldfireprocessor. The Kernelsources come 
> from the BSP M54455EVB, Release 20071214. The compilation is ok, but 
> there is some problem with the linkerscript:

...

> Trying to link .tmp_vmlinux1, I get
> 
> LD      .tmp_vmlinux1
> m68k-linux-gnu-ld: .tmp_vmlinux1: PROGBITS section 
> '.data.cacheline_aligned' cannot be placed into same segment after 
> NOBITS section '.bss'
> m68k-linux-gnu-ld: map sections to segments failed: Nonrepresentable 
> section on output
> 
> With the older Linker (Sourcery G++ Lite 4.2-35) 2.17, there is no problem.

The linker script is ill-formed.  The fix is to place .bss section last 
in the linker script.

SG++ Lite 4.2-35 release didn't properly diagnose the error and produced 
a broken executable in this case.


Regards,

Maxim Kuvyrkov
CodeSourcery



More information about the coldfire-gnu-discuss mailing list