Skip to content

link time optimization (-lto) of AVR breaks inclusion of debug info in elf file #5539

Closed
@WestfW

Description

@WestfW

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions