<div dir="ltr">Hi<div><br></div><div>I am working on a new BSP and splinkerset01 is failing.</div><div><br></div><div><div>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</div><div>/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'</div><div>/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</div><div>collect2: error: ld returned 1 exit status</div></div><div><br></div><div>This is the diff between psim's linkcmds and this new BSP's:</div><div><br></div><div><div>11c11,12</div><div>< <span class="gmail-Apple-tab-span" style="white-space:pre">  </span>RAM       : ORIGIN = 0, LENGTH = 16M</div><div>---</div><div>> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span>/* RAM       : ORIGIN = 0x400000 + SIZEOF_HEADERS, LENGTH = 16M */</div><div>> <span class="gmail-Apple-tab-span" style="white-space:pre">     </span>RAM       : ORIGIN = 0x400000 + SIZEOF_HEADERS, LENGTH = 32M</div></div><div><br></div><div>SIZEOF_HEADERS is a GNU ld builtin so there isn't any really special magic there.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel</div></div>