Hint Wanted on Debugging Unexpected Section

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 4 18:42:58 UTC 2016


----- Joel Sherrill <joel at rtems.org> schrieb:
> On Mon, Jul 4, 2016 at 1:07 PM, Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
> 
> > Hello Joel,
> >
> > please use the linker command files of the qoriq BSPs as a template on
> > PowerPC.
> >
> >
> psim is using the shared linkcmds. Is something wrong with it?
> 
> What would be the advantage of the qoriq linker script if both are using
> the shared pattern?
> 
> Just curious. I was avoiding the cut and pasted ones like the plague. But
> if there is a second factor, we all should know it.

Sorry for the noise, the PSIM linkcmds is fine.

> 
> 
> > You can use the linker map file to figure out which sections a the trouble
> > maker (-Wl,-Map,map.txt).
> >
> >
> Hmm... there were these... any ideas?
> 
> Thanks.
> 
> .unexpected_sections
>                 0x00000000       0xa8
>  *(*)
>  .rela.rtemsroset._Sysinit.content.0.0x00030080
>                 0x00000000        0xc

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?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list