Skip to content

Commit a3a3654

Browse files
earlephilhowerd-a-v
authored andcommitted
Add linker MAP artifact to standard build process (#4186)
Generate and preserve a linker .MAP file for the project in the usual build directory. This map file is useful for finding out where FLASH, IROM, and IRAM are being used as it shows gcc internally generated things such as jump tables and constant function-local variables.
1 parent f2187f5 commit a3a3654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.fla
8989
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/arduino.ar" "{object_file}"
9090

9191
## Combine gc-sections, archives, and objects
92-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" -Wl,--start-group {object_files} "{build.path}/arduino.ar" {compiler.c.elf.libs} -Wl,--end-group "-L{build.path}"
92+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -Wl,-Map "-Wl,{build.path}/{build.project_name}.map" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" -Wl,--start-group {object_files} "{build.path}/arduino.ar" {compiler.c.elf.libs} -Wl,--end-group "-L{build.path}"
9393

9494
## Create eeprom
9595
recipe.objcopy.eep.pattern=

0 commit comments

Comments
 (0)