SLAU646F September 2015 – June 2020
Figure 3-14 shows the MSP430 GCC Linker Basic settings window.
Table 3-12 describes the options that are available for MSP430 GCC Linker Basic settings.
Option | Description |
---|---|
Output file (-o) | Use output as the name for the file produced by ld; if this option is not specified, the name 'a.out' is used by default. The script command OUTPUT can also specify the output file name. |
Write a map file (-Map) | Print to the file mapfile a link map, which contains diagnostic information about where symbols are mapped by Id and information on global common storage allocation. |
Set start address (-e, --entry) | Use entry as the explicit symbol for beginning program execution, rather than the default entry point. |
Do not use the
standard system startup files when linking (-nostartfiles) |
Do not use the standard system startup files when linking. The standard system libraries are used unless -nostdlib or -nodefaultlibs is used. |
Do not use the
standard system libraries when linking (-nodefaultlibs) |
Do not use the standard system libraries when linking. Only the specified libraries are passed to the linker, and options specifying linkage of the system libraries, such as ‑static‑libgcc or ‑shared‑libgcc, are ignored. The standard startup files are used unless -nostartfiles is used. The compiler may generate calls to memcmp, memset, memcpy, and memmove. These entries are usually resolved by entries in libc. These entry points should be supplied through some other mechanism when this option is specified. |
Do not use the standard system startup files or libraries when linking (-nostdlib) | Do not use the standard system startup files or libraries when linking. |
Do not link with the shared libraries (-static) | On systems that support dynamic linking, this prevents linking with the shared libraries. On other systems, this option has no effect. |
Remove unused
sections (--gc-sections) |
Enable garbage collection of unused input sections. Ignored on targets that do not support this option. |