avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] -ffunction-sections and xmega


From: Weddington, Eric
Subject: RE: [avr-gcc-list] -ffunction-sections and xmega
Date: Wed, 23 Jun 2010 17:11:52 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Thomas Ingebretsen
> Sent: Wednesday, June 23, 2010 12:05 PM
> To: address@hidden
> Subject: [avr-gcc-list] -ffunction-sections and xmega
> 
> Hi!
> In an attempt to reduce the code size I tried to use the
> -ffunction-sections and -fdata-sections with the --gc-sections linker
> flag.
> With -ffunction-sections option enabled the linker fails with the
> following errors:
> 
> avr-gcc -Wl,-Map,orient.out.map -mmcu=atxmega32a4 --gc-sections
> -Wl,--relax -lc -lm -o orient.out main.o kalman.o data_link.o

What do you get when you remove linker relaxation (-Wl,--relax)? Do you still 
get errors?

Thanks,
Eric Weddington



reply via email to

[Prev in Thread] Current Thread [Next in Thread]