Hint Wanted on Debugging Unexpected Section
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Jul 4 18:07:09 UTC 2016
Hello Joel,
please use the linker command files of the qoriq BSPs as a template on PowerPC.
You can use the linker map file to figure out which sections a the trouble maker (-Wl,-Map,map.txt).
----- Am 4. Jul 2016 um 19:57 schrieb Joel Sherrill joel at rtems.org:
> Hi
>
> I have an unexpected section error on linking a BSP. It is a new BSP but
> development is early so I am using a direct copy of psim's linkcmds.
>
> /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/../../../../powerpc-rtems4.12/bin/ld:
> hello.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.1.1/../../../../powerpc-rtems4.12/bin/ld:
> section .unexpected_sections loaded at [00000000,000000a7] overlaps section
> .text loaded at [00000000,0001fc97]
> /home/joel/rtems-4.11-work/tools/4.12/lib/gcc/powerpc-rtems4.12/6.1.1/../../../../powerpc-rtems4.12/bin/ld:
> region `UNEXPECTED_SECTIONS' overflowed by 169 bytes
> collect2: error: ld returned 1 exit status
>
> Any help in narrowing down the unknown is appreciated.
>
> I wonder whether the unexpected will be something scary like a ghost
> or pleasant like a long lost friend or USD20 on the ground. :)
>
> --joel
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list