<div dir="ltr">As I was already manipulating the linker script, i added a KEEP(). now it does not remove the funnction, or anything that is being addressed by it.<br><br>cheers,<br>erez.<br><br><div class="gmail_quote">On Mon, Mar 7, 2011 at 2:06 PM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><br><br><div class="gmail_quote"><div class="im">On Mon, Mar 7, 2011 at 1:33 PM, Muli Ben-Yehuda <span dir="ltr"><<a href="mailto:muli@il.ibm.com" target="_blank">muli@il.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, Mar 07, 2011 at 12:27:08PM +0200, Erez D wrote:<br>
<br>
> int x;<br>
><br>
> void a()<br>
<br>
extern void a()<br></blockquote></div><div>doesn't work<br>avr32-gcc 4.3.2 <br></div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
> {<br>
> x=3;<br>
> }<br>
><br>
> int main()<br>
> {<br>
> x=0;<br>
> return 1;<br>
> }<br>
><br>
> ========================<br>
><br>
> the linker will remove function a() as it is not called from<br>
> enywhere. however, i need it to be there, including all of its<br>
> content.<br>
<br>
</div>gcc (ld) 4.4.3 does not remove it in this case. What linker are you<br>
using?<br>
<br>
Cheers,<br>
<font color="#888888">Muli<br>
</font></blockquote></div></div><br></div>
</blockquote></div><br></div>