Rtems 4.8.2 for leon2 and gc-sections
Oscar Alvarez Paredes
oscar.alvarez.paredes at googlemail.com
Mon Feb 20 10:26:23 UTC 2012
Hi,
The linker generates an executable without any warning or error, but when
it is executed a trap is raised at start up.
Oscar
2012/2/17 Joel Sherrill <joel.sherrill at oarcorp.com>
> **
> On 02/17/2012 01:51 AM, Oscar Alvarez Paredes wrote:
>
> Hi,
>
> I'm working with Rtems 4.8.2 for leon2 and I'd like to use the
> "gc-sections" option of the linker to remove the unused sections.
>
> I have created a tiny program that works as expected if I link it without
> the "gc-sections" option, but that fails to start if I use such option.
>
> I would appreciate If you could give me any hint on why it the executable
> is not linked properly with that option and how to fix it.
>
> What do you mean "not linked properly"?
>
> If it fails to link, it is likely missing a wild card "*" one some section
> name in the linkcmds file.
>
> If it is something wrong with a generated ELF file, then it is a bug that
> is very very unlikely
> to get fixed on the tools used with 4.8.x
>
> I can provide any further information that might be regarded as important.
>
> Thanks in advance,
>
> Oscar
>
>
>
> --
> Joel Sherrill, Ph.D. Director of Research& Developmentjoel.sherrill at OARcorp.com On-Line Applications Research
> Ask me about RTEMS: a free RTOS Huntsville AL 35805
> Support Available (256) 722-9985
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120220/3976f4d7/attachment-0001.html>
More information about the users
mailing list