splinkerset01 failure

Joel Sherrill joel at rtems.org
Thu Jan 12 17:56:36 UTC 2017


Hi

I am working on a new BSP and splinkerset01 is failing.

powerpc-rtems4.12-gcc -B../../../../../deos/lib/ -specs bsp_specs -qrtems
-mcpu=603e -Dppc603e -gdwarf-2 -O2 -g -fno-keep-inline-functions
-ffunction-sections -fdata-sections -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
 -Wl,--gc-sections -Wl,-Ttext-segment=0x04200000 -Wl,-call_shared
-Wl,-Bshareable -Wl,-shared -Wl,-export-dynamic -Wl,-no-undefined
/home/joel/rtems-4.11-work/tools/4.12/../desk/ppc/lib/libkernel.so
-Wl,--whole-archive
/home/joel/rtems-4.11-work/tools/4.12/../desk/ppc/lib/gcc-4.6.1/libvideo.a
-Wl,--no-whole-archive -Wl,-Map,map.txt  -mcpu=603e  -Dppc603e -gdwarf-2
-o splinkersets01.exe init.o  libsplinkersets01.a
/home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.3.0/../../../../powerpc-rtems4.12/bin/ld:
splinkersets01.exe section `.unexpected_sections' will not fit in region
`UNEXPECTED_SECTIONS'
/home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.3.0/../../../../powerpc-rtems4.12/bin/ld:
region `UNEXPECTED_SECTIONS' overflowed by 133 bytes
collect2: error: ld returned 1 exit status

This is the diff between psim's linkcmds and this new BSP's:

11c11,12
< RAM       : ORIGIN = 0, LENGTH = 16M
---
> /* RAM       : ORIGIN = 0x400000 + SIZEOF_HEADERS, LENGTH = 16M */
> RAM       : ORIGIN = 0x400000 + SIZEOF_HEADERS, LENGTH = 32M

SIZEOF_HEADERS is a GNU ld builtin so there isn't any really special magic
there.

Any ideas?

Thanks.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170112/c21f0cad/attachment-0001.html>


More information about the devel mailing list