<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 02/17/2012 01:51 AM, Oscar Alvarez Paredes wrote:
<blockquote
cite="mid:CAEnJ5VsX+KASQ7Sp0EyyhHYf9x3vJ9tTLd87NQ+d99z7ZwUqbw@mail.gmail.com"
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>
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<br>
<blockquote
cite="mid:CAEnJ5VsX+KASQ7Sp0EyyhHYf9x3vJ9tTLd87NQ+d99z7ZwUqbw@mail.gmail.com"
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>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>