You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In recent versions of avr-gcc, the -g option is needed during compile in order to get enough debug information into the final elf file for things like a combined source/disassemebly (avr-objdump -SC foo.elf) to work. Now that link time optimization has been implemented, the "link" command will need the -g option as well as the individual compiles...
(It's possible that some other compile-time options also need to be moved to the link statement as well, but "-g" is the one I noticed.)
The text was updated successfully, but these errors were encountered:
Hi @WestfW ,
does it impact the size of the final hex (once the debug sections have been removed of course)? If it doesn't, I believe we could simply add the -g flag everywhere. Otherwise we'll need to provide a way to override the commandline in order to produce a debuggable elf
In recent versions of avr-gcc, the -g option is needed during compile in order to get enough debug information into the final elf file for things like a combined source/disassemebly (avr-objdump -SC foo.elf) to work. Now that link time optimization has been implemented, the "link" command will need the -g option as well as the individual compiles...
(It's possible that some other compile-time options also need to be moved to the link statement as well, but "-g" is the one I noticed.)
The text was updated successfully, but these errors were encountered: