1
0

Added map file creation

A linker .map file will be created as an additional build artifact.
This map file can be used for debugging symbol issues or for
firmware post-processing.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
This commit is contained in:
Florian Fleissner 2020-01-16 15:52:12 +01:00
parent 3dc5e4ddd6
commit 8879b38ce1
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ compiler.path={runtime.tools.avr-gcc.path}/bin/
#compiler.path=/usr/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections "-Wl,-Map={build.path}/{build.project_name}.elf.map"
compiler.c.elf.flags_join_archives=rcT
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp

View File

@ -17,7 +17,7 @@ compiler.warning_flags.all=-Wall -Wextra
compiler.path=
compiler.c.cmd=gcc
compiler.c.flags=-c -g {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -DKALEIDOSCOPE_VIRTUAL_BUILD=1 -DKEYBOARDIOHID_BUILD_WITHOUT_HID=1 -DUSBCON=dummy -DARDUINO_ARCH_AVR=1
compiler.c.elf.flags={compiler.warning_flags} -Wl,--gc-sections
compiler.c.elf.flags={compiler.warning_flags} -Wl,--gc-sections "-Wl,-Map={build.path}/{build.project_name}.elf.map"
compiler.c.elf.flags_join_archives=rcT
compiler.c.elf.cmd=g++
compiler.S.flags=-c -g -x assembler-with-cpp