diff options
author | eorg-Johann Lay <avr@gjlay.de> | 2017-05-19 15:06:33 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-05-19 15:06:33 +0100 |
commit | f4203b2b8830e66e5229b7f9d30cd29b088566b5 (patch) | |
tree | 5e2d585c1401cb5d4dc6e1b812e7ac899a6db24d /ld/emulparams | |
parent | 6e7e1744e96abbf1a4229d5f269caf2cc921ec58 (diff) | |
download | gdb-f4203b2b8830e66e5229b7f9d30cd29b088566b5.zip gdb-f4203b2b8830e66e5229b7f9d30cd29b088566b5.tar.gz gdb-f4203b2b8830e66e5229b7f9d30cd29b088566b5.tar.bz2 |
Update avrxmega3 linker emulation to support avrxmega2 devices with flash memory visible in the SRAM address range.
PR ld/21472
ld * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
* scripttempl/avr.sc
(__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]: Use RODATA_PM_OFFSET
as default if not already defined.
(.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
(.rodata) [RODATA_PM_OFFSET]: Put at an offset of
__RODATA_PM_OFFSET__.
gas * config/tc-avr.c (mcu_types): Add entries for: attiny416,
attiny417, attiny816, attiny817.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/avrxmega3.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/emulparams/avrxmega3.sh b/ld/emulparams/avrxmega3.sh index abaa5b3..7c5a1e5 100644 --- a/ld/emulparams/avrxmega3.sh +++ b/ld/emulparams/avrxmega3.sh @@ -9,4 +9,5 @@ TEMPLATE_NAME=elf32 TEXT_LENGTH=1024K DATA_ORIGIN=0x802000 DATA_LENGTH=0xffa0 +RODATA_PM_OFFSET=0x8000 EXTRA_EM_FILE=avrelf |