<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 4, 2016 at 1:42 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"><br>
----- Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> schrieb:<br>
<span class="">> On Mon, Jul 4, 2016 at 1:07 PM, Sebastian Huber <<br>
> <a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br>
><br>
> > Hello Joel,<br>
> ><br>
> > please use the linker command files of the qoriq BSPs as a template on<br>
> > PowerPC.<br>
> ><br>
> ><br>
> psim is using the shared linkcmds. Is something wrong with it?<br>
><br>
> What would be the advantage of the qoriq linker script if both are using<br>
> the shared pattern?<br>
><br>
> Just curious. I was avoiding the cut and pasted ones like the plague. But<br>
> if there is a second factor, we all should know it.<br>
<br>
</span>Sorry for the noise, the PSIM linkcmds is fine.<br>
<span class=""><br></span></blockquote><div><br></div><div>No problem. Just wanted to make sure I wasn't missing something.</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"><span class="">
><br>
><br>
> > You can use the linker map file to figure out which sections a the trouble<br>
> > maker (-Wl,-Map,map.txt).<br>
> ><br>
> ><br>
> Hmm... there were these... any ideas?<br>
><br>
> Thanks.<br>
><br>
> .unexpected_sections<br>
>                 0x00000000       0xa8<br>
>  *(*)<br>
>  .rela.rtemsroset._Sysinit.content.0.0x00030080<br>
>                 0x00000000        0xc<br>
<br>
</span>You use probably some GCC flags that no other BSP used up to now.  What are your LDFLAGS or CFLAGS?  Do you use PIC or some dynamic relocations?  Who generates these .rela.rtemsroset.* sections?<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>This BSP is paravirtualized. All of the provided system libraries are</div><div>dynamic (except for the video one). We already have this running on</div><div>x86 and I was moving it to ppc. So the environment is a bit different.</div><div>I didn't see this on x86.</div><div><br></div><div>CFLAGS are normal. The LDFLAGS have these added which are</div><div>the same as on x86.</div><div><br></div><div><div>LDFLAGS += -Wl,-Ttext-segment=0x04200000</div><div>LDFLAGS += -Wl,-call_shared</div><div>LDFLAGS += -Wl,-Bshareable</div><div>LDFLAGS += -Wl,-shared</div><div>LDFLAGS += -Wl,-export-dynamic</div><div>LDFLAGS += -Wl,-no-undefined</div><div>LDFLAGS += ${DESKHOME}/ppc/lib/libkernel.so</div><div>LDFLAGS += -Wl,--whole-archive</div><div>LDFLAGS += ${DESKHOME}/ppc/lib/gcc-4.6.1/libvideo.a</div><div>LDFLAGS += -Wl,--no-whole-archive</div><div>LDFLAGS += -Wl,-Map,map.txt</div></div><div><br></div><div>Since the unexpected sections appear to be rtems specific, any suggestions</div><div>on how to track them down? All I can think of is a brutal hack to check</div><div>every object.</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel</div><div><br></div><div><br></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"><span class=""><font color="#888888">
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116">+49 89 189 47 41-16</a><br>
Fax     : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109">+49 89 189 47 41-09</a><br>
E-Mail  : sebastian.huber at <a href="http://embedded-brains.de" rel="noreferrer" target="_blank">embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</font></span></blockquote></div><br></div></div>