SPRUIG8K January 2018 – March 2025
The syntax for the --map_file option is:
--map_file= filename
The linker map describes:
The map file contains the name of the output module and the entry point; it can also contain up to three tables:
| R | specifies that the memory can be read. | ||
| W | specifies that the memory can be written to. | ||
| X | specifies that the memory can contain executable code. | ||
| I | specifies that the memory can be initialized. |
For more information about the SECTIONS directive, see Section 12.5.5.
The following example links file1.c.obj and file2.c.obj and creates a map file called map.out:
cl7x --run_linker file1.c.obj file2.c.obj --map_file=map.outGUID-290F5C51-0C1C-4634-8532-54065076628D.html#STDZ0753137 shows an example of a map file.