Skip to content

Commit

Permalink
[AVR] Add -g to elf.flags to allow inclusion of debug symbols in elf
Browse files Browse the repository at this point in the history
Fixes #5539
  • Loading branch information
facchinm committed Nov 23, 2016
1 parent 54f7041 commit 35e45c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/arduino/avr/platform.txt
Expand Up @@ -21,7 +21,7 @@ compiler.warning_flags.all=-Wall -Wextra
compiler.path={runtime.tools.avr-gcc.path}/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp -flto -MMD
compiler.cpp.cmd=avr-g++
Expand Down

0 comments on commit 35e45c9

Please sign in to comment.