"Ruud Vlaming" wrote:

> On Tuesday 24 February 2009 05:29, Jim Brain wrote:
>> WinAVR 20081205 in use.
>> 
>> I have an app that, if I use:
>> 
>>     LDFLAGS += -Wl,-O9,-relax
>> 
>> avr-ld dies during link.  If I take off -relax, as is well.

Does "as is well" mean that avr-ld also dies with just -Wl,-O9 ?

If the answer to that question is no, then you could be running into this
http://sourceware.org/bugzilla/show_bug.cgi?id=9841

The linker treats -relax and --relax the same.  --relax is the documented
option.

> I think this is a bug. Try:
>   -Wl,--gc-sections -Wl,--relax
> instead of your options.

-Preston




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to