MSP430 Linker: Define __crt0_init_bss/__crt0_movedata symbols when .lower or .either...
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 17 Apr 2019 14:05:08 +0000 (15:05 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 17 Apr 2019 14:05:08 +0000 (15:05 +0100)
commite25de718de3b613cfafb9c5b28dea8e55a8649b8
tree91742b2c280836b8223b3e509ac7c642d9b81251
parentafff667ae800adee5934020c92012e3ecbf4dabd
MSP430 Linker: Define __crt0_init_bss/__crt0_movedata symbols when .lower or .either prefixed sections are present.

ld * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
symbol when .lower.bss or .either.bss sections exist.
Define __crt0_movedata when .lower.data or .either.data sections exist.
* testsuite/gas/msp430/either-data-bss-sym.d: New test.
* testsuite/gas/msp430/low-data-bss-sym.d: New test.
* testsuite/gas/msp430/either-data-bss-sym.s: New test source.
* testsuite/gas/msp430/low-data-bss-sym.s: New test source.
* testsuite/gas/msp430/msp430.exp: Run new tests.
Enable large code model when running -mdata-region={upper,either}
tests.
ld/ChangeLog
ld/emultempl/msp430.em
ld/testsuite/ld-msp430-elf/msp430-elf.exp
ld/testsuite/ld-msp430-elf/valid-map-foo.s [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/valid-map.d [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/valid-map.map [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/valid-map.s [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/warn-no-lower-code.r [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/warn-no-lower-data.r [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/warn-no-lower.r [new file with mode: 0644]
ld/testsuite/ld-msp430-elf/warn-no-lower.s [new file with mode: 0644]