<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 4, 2016 at 1:07 PM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello Joel,<br>
<br>
please use the linker command files of the qoriq BSPs as a template on PowerPC.<br>
<br></blockquote><div><br></div><div>psim is using the shared linkcmds. Is something wrong with it? </div><div><br></div><div>What would be the advantage of the qoriq linker script if both are using</div><div>the shared pattern?</div><div><br></div><div>Just curious. I was avoiding the cut and pasted ones like the plague. But</div><div>if there is a second factor, we all should know it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
You can use the linker map file to figure out which sections a the trouble maker (-Wl,-Map,map.txt).<br>
<div><div class="h5"><br></div></div></blockquote><div><br></div><div>Hmm... there were these... any ideas? </div><div><br></div><div>Thanks.</div><div><br></div><div><div>.unexpected_sections</div><div>                0x00000000       0xa8</div><div> *(*)</div><div> .rela.rtemsroset._Sysinit.content.0.0x00030080</div><div>                0x00000000        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00040180</div><div>                0x0000000c        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00070680</div><div>                0x00000018        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00010080</div><div>                0x00000024        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00020080</div><div>                0x00000030        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00060080</div><div>                0x0000003c        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00034580</div><div>                0x00000048        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00034080</div><div>                0x00000054        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00030280</div><div>                0x00000060        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00038080</div><div>                0x0000006c        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00070180</div><div>                0x00000078        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00040080</div><div>                0x00000084        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00080080</div><div>                0x00000090        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .rela.rtemsroset._Sysinit.content.0.0x00036b80</div><div>                0x0000009c        0xc /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/ecrti.o</div><div> .tm_clone_table</div><div>                0x000000a8        0x0 /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/crtbegin.o</div><div> .tm_clone_table</div><div>                0x000000a8        0x0 /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/m603e/crtend.o</div><div>                0x000000a8                __TMC_END__</div></div><div><br></div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="h5">
----- Am 4. Jul 2016 um 19:57 schrieb Joel Sherrill <a href="mailto:joel@rtems.org">joel@rtems.org</a>:<br>
<br>
> Hi<br>
><br>
> I have an unexpected section error on linking a BSP. It is a new BSP but<br>
> development is early so I am using a direct copy of psim's linkcmds.<br>
><br>
> /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/../../../../powerpc-rtems4.12/bin/ld:<br>
> hello.exe section `.unexpected_sections' will not fit in region<br>
> `UNEXPECTED_SECTIONS'<br>
> /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/../../../../powerpc-rtems4.12/bin/ld:<br>
> section .unexpected_sections loaded at [00000000,000000a7] overlaps section<br>
> .text loaded at [00000000,0001fc97]<br>
> /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/../../../../powerpc-rtems4.12/bin/ld:<br>
> region `UNEXPECTED_SECTIONS' overflowed by 169 bytes<br>
> collect2: error: ld returned 1 exit status<br>
><br>
> Any help in narrowing down the unknown is appreciated.<br>
><br>
> I wonder whether the unexpected will be something scary like a ghost<br>
> or pleasant like a long lost friend or USD20 on the ground. :)<br>
><br>
> --joel<br>
><br>
</div></div>> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div>