Next: , Previous: MMIX, Up: Machine Dependent


4.6 ld and MSP430

For the MSP430 it is possible to select the MPU architecture. The flag `-m [mpu type]' will select an appropriate linker script for selected MPU type. (To get a list of known MPUs just pass `-m help' option to the linker).

The linker will recognize some extra sections which are MSP430 specific:

`.vectors'
Defines a portion of ROM where interrupt vectors located.
`.bootloader'
Defines the bootloader portion of the ROM (if applicable). Any code in this section will be uploaded to the MPU.
`.infomem'
Defines an information memory section (if applicable). Any code in this section will be uploaded to the MPU.
`.infomemnobits'
This is the same as the `.infomem' section except that any code in this section will not be uploaded to the MPU.
`.noinit'
Denotes a portion of RAM located above `.bss' section.

The last two sections are used by gcc.

The `--no-enum-size-warning' switch prevents the linker from warning when linking object files that specify incompatible EABI enumeration size attributes. For example, with this switch enabled, linking of an object file using 32-bit enumeration values with another using enumeration values fitted into the smallest possible space will not be diagnosed.