ld: MSP430

1 
1 4.9 'ld' and MSP430
1 ===================
1 
1 For the MSP430 it is possible to select the MPU architecture.  The flag
1 '-m [mpu type]' will select an appropriate linker script for selected
1 MPU type.  (To get a list of known MPUs just pass '-m help' option to
1 the linker).
1 
1    The linker will recognize some extra sections which are MSP430
1 specific:
1 
1 ''.vectors''
1      Defines a portion of ROM where interrupt vectors located.
1 
1 ''.bootloader''
1      Defines the bootloader portion of the ROM (if applicable).  Any
1      code in this section will be uploaded to the MPU.
1 
1 ''.infomem''
1      Defines an information memory section (if applicable).  Any code in
1      this section will be uploaded to the MPU.
1 
1 ''.infomemnobits''
1      This is the same as the '.infomem' section except that any code in
1      this section will not be uploaded to the MPU.
1 
1 ''.noinit''
1      Denotes a portion of RAM located above '.bss' section.
1 
1      The last two sections are used by gcc.
1 
1 '--code-region=[either,lower,upper,none]'
1      This will transform .text* sections to [either,lower,upper].text*
1      sections.  The argument passed to GCC for -mcode-region is
1      propagated to the linker using this option.
1 
1 '--data-region=[either,lower,upper,none]'
1      This will transform .data*, .bss* and .rodata* sections to
1      [either,lower,upper].[data,bss,rodata]* sections.  The argument
1      passed to GCC for -mdata-region is propagated to the linker using
1      this option.
1 
1 '--disable-sec-transformation'
1      Prevent the transformation of sections as specified by the
1      '--code-region' and '--data-region' options.  This is useful if you
1      are compiling and linking using a single call to the GCC wrapper,
1      and want to compile the source files using -m[code,data]-region but
1      not transform the sections for prebuilt libraries and objects.
1