Hi,<br><br><div class="gmail_quote">The linker generates an executable without any warning or error, but when it is executed a trap is raised at start up.<div class="HOEnZb"><div class="h5"><br>Oscar<br><br><div class="gmail_quote">
2012/2/17 Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div text="#000000" bgcolor="#ffffff"><div>
On 02/17/2012 01:51 AM, Oscar Alvarez Paredes wrote:
<blockquote type="cite"><font face="Arial"><font face="Times New Roman" size="3">Hi,<br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
</font></font></blockquote></div>
What do you mean "not linked properly"?<br>
<br>
If it fails to link, it is likely missing a wild card "*" one some
section name in the linkcmds file.<br>
<br>
If it is something wrong with a generated ELF file, then it is a bug
that is very very unlikely<br>
to get fixed on the tools used with 4.8.x<div><br>
<blockquote type="cite"><font face="Arial"><font face="Times New Roman" size="3">I can provide any further information that might be
regarded as important.<br>
<br>
Thanks in advance,<br>
<br>
Oscar</font></font>
</blockquote>
<br>
<br>
</div><span><font color="#888888"><pre cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a href="mailto:joel.sherrill@OARcorp.com" target="_blank">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available <a href="tel:%28256%29%20722-9985" value="+12567229985" target="_blank">(256) 722-9985</a>
</pre>
</font></span></div>
</blockquote></div><br>
</div></div></div><br>