ld Manual

ld Options
ld Manual529650.001
2-16
-m or -map
-m or -map
Directs ld to produce a memory map of the PIC program or library being created.
The default behavior does not produce a memory map.
Output is generated regardless of the verbosity setting.
-no_optional_lib or -optional_lib
Specifies whether a library specified in the command stream is to be considered
optional when creating a loadfile.
-optional_lib
causes a library specified in -l or -lib that is not used to resolve a symbol to be
omitted from the .liblist section of the loadfile being created. This is the
default.
-no_optional_lib
causes a library specified in -l or -lib to be included in the .liblist section of the
loadfile being created, whether or not it is actually needed.
These flags can be specified as many times as needed in the command stream.
Providing either flag overrides the current setting, so that the linker actions can be
controlled on a library-by-library basis.
If a library is specified more than once and at least one specification occurs when
-no_optional_lib is in effect, the library is included in the .liblist section of the
loadfile being created.
-m[ap]
-no_optional_lib | -optional_lib