Rtems 4.8.2 for leon2 and gc-sections

Joel Sherrill joel.sherrill at OARcorp.com
Fri Feb 17 16:04:52 UTC 2012


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&   Development
joel.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/20120217/698b1ea5/attachment-0001.html>


More information about the users mailing list