diff options
author | Nick Clifton <nickc@redhat.com> | 2016-01-05 16:43:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-01-05 16:43:58 +0000 |
commit | 296ebfbb91bc9453134c467b4bfe8363582674f7 (patch) | |
tree | 94066be06cfe87444556d5218688903eacd97be8 /ld | |
parent | fa89c1268f5d4e9950f3faf8c027dbbeb6aac773 (diff) | |
download | gdb-296ebfbb91bc9453134c467b4bfe8363582674f7.zip gdb-296ebfbb91bc9453134c467b4bfe8363582674f7.tar.gz gdb-296ebfbb91bc9453134c467b4bfe8363582674f7.tar.bz2 |
Fix the execution of the MSP430 simulator testsuite.
ld * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
MSP430 hardware multiply address range.
* scripttempl/elf32msp430.sc (__romdatastart): Define.
(__romdatacopysize): Define.
* scripttempl/elf32msp430_3.sc: Likewise.
tests * testutils.inc (__pass): Use the LMA addresses of the _passmsg
symbol.
(__fail): Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/emulparams/msp430elf.sh | 2 | ||||
-rw-r--r-- | ld/scripttempl/elf32msp430.sc | 3 | ||||
-rw-r--r-- | ld/scripttempl/elf32msp430_3.sc | 3 |
4 files changed, 15 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 3aa46ed..528cc6e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2016-01-05 Nick Clifton <nickc@redhat.com> + + * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the + MSP430 hardware multiply address range. + * scripttempl/elf32msp430.sc (__romdatastart): Define. + (__romdatacopysize): Define. + * scripttempl/elf32msp430_3.sc: Likewise. + 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert diff --git a/ld/emulparams/msp430elf.sh b/ld/emulparams/msp430elf.sh index a76e9ee..e9d0237 100644 --- a/ld/emulparams/msp430elf.sh +++ b/ld/emulparams/msp430elf.sh @@ -13,6 +13,6 @@ EMBEDDED=yes ARCH=msp:14 ROM_START=0x8000 ROM_SIZE=0x7fe0 -RAM_START=0x0200 +RAM_START=0x0500 RAM_SIZE=1K STACK=0x600 diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc index 78c7c12..50b7ddb 100644 --- a/ld/scripttempl/elf32msp430.sc +++ b/ld/scripttempl/elf32msp430.sc @@ -269,6 +269,9 @@ SECTIONS ${RELOCATING+ _edata = . ; } } ${RELOCATING+ > data ${RELOCATING+AT> text}} + __romdatastart = LOADADDR(.data); + __romdatacopysize = SIZEOF(.data); + .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : { ${RELOCATING+. = ALIGN(2);} diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc index 7a13081..7ad04e1 100644 --- a/ld/scripttempl/elf32msp430_3.sc +++ b/ld/scripttempl/elf32msp430_3.sc @@ -147,6 +147,9 @@ SECTIONS ${RELOCATING+ _edata = . ; } } ${RELOCATING+ > data ${RELOCATING+AT> text}} + __romdatastart = LOADADDR(.data); + __romdatacopysize = SIZEOF(.data); + .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : { ${RELOCATING+. = ALIGN(2);} |