5. Linker Map Files

A map file provides detailed information about the link and helps analyze output images, debug build issues, and better understand linker decisions. It contains detailed information for input files, linker scripts, memory regions, image memory layout, and so much more. Effectively using map files can significantly reduce the time spent analyzing and debugging builds.

Use -Map to generate map files for your builds.

5.1. Map File Styles

Map files are available in three distinct styles:

  1. Text

  2. YAML

  3. Binary

Use option -MapStyle to specify the map file style. Text map file is the default map style.