[PATCH][MSP430][LD][COMMITTED] Add input section rules for .upper sections to default linker script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH][MSP430][LD][COMMITTED] Add input section rules for .upper sections to default linker script

Jozef Lawrynowicz-2
When compiling using GCC for msp430-elf, the -mdata-region=upper and
-mcode-region=upper target flags will generate sections prefixed with ".upper"
i.e. .upper.{text,data,rodata,bss}*.

The default linker script does not know how to place these sections, and the
following error message is emitted:
./ld-new: warning: no input section rule matches .upper.text in linker script
./ld-new: warning: no input section rule matches .upper.bss in linker script
./ld-new: warning: no input section rule matches .upper.data in linker script
./ld-new: warning: no input section rule matches .upper.rodata in linker script

This patch fixes this by adding input section rules for .upper.* sections.

Regtested the binutils testsuite for msp430-elf.

Committed as obvious.

0001-MSP430-Add-input-section-rules-for-.upper-sections-t.patch (3K) Download Attachment