diff options
author | Nick Clifton <nickc@redhat.com> | 2015-05-05 13:38:00 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-05-05 13:38:00 +0100 |
commit | 837a17b36c9e297f4bf33727e25dfa9f38360c17 (patch) | |
tree | 5cf6ecb482076cf1e20e437b6ea94c00c87cb103 /ld/emulparams | |
parent | b76f99d702c3501ac320396ea06bc7f9237173c3 (diff) | |
download | gdb-837a17b36c9e297f4bf33727e25dfa9f38360c17.zip gdb-837a17b36c9e297f4bf33727e25dfa9f38360c17.tar.gz gdb-837a17b36c9e297f4bf33727e25dfa9f38360c17.tar.bz2 |
Add support to the MSP430 linker for the automatic placement of code and data into either low or high memory regions.
gas * config/tc-msp430.c (MAX_OP_LEN): Increase to 4096.
(msp430_make_init_symbols): New function.
(msp430_section): Call it.
(msp430_frob_section): Likewise.
ld * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
* scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
(.data): Add .lower.data and .either.data.
(.bss): Add .lower.bss and .either.bss.
(.rodata): Add .lower.rodata and .either.rodata.
* emultempl/msp430.em: New file. Implements a new orphan
placement algorithm that divides sections between lower and upper
memory regions.
* Makefile.am (emsp430elf.c): Depend upon msp430.em.
*emsp430X.c): Likewise.
* Makefine.in: Regenerate.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/msp430elf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emulparams/msp430elf.sh b/ld/emulparams/msp430elf.sh index b459698..a76e9ee 100644 --- a/ld/emulparams/msp430elf.sh +++ b/ld/emulparams/msp430elf.sh @@ -3,7 +3,7 @@ # This called by genscripts_extra.sh SCRIPT_NAME=elf32msp430 -TEMPLATE_NAME=generic +TEMPLATE_NAME=msp430 EXTRA_EM_FILE=genelf OUTPUT_FORMAT="elf32-msp430" MACHINE= |