[PATCH][MSP430][LD][COMMITTED] Add input section rules for .upper sections to default linker script
Jozef Lawrynowicz
jozef.l@mittosystems.com
Thu Jan 16 13:42:00 GMT 2020
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MSP430-Add-input-section-rules-for-.upper-sections-t.patch
Type: text/x-patch
Size: 3836 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200116/74eaa163/attachment.bin>
More information about the Binutils
mailing list