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 /gas/config/tc-avr.c | |
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 'gas/config/tc-avr.c')
-rw-r--r-- | gas/config/tc-avr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c index 7214c07..79837c8 100644 --- a/gas/config/tc-avr.c +++ b/gas/config/tc-avr.c @@ -300,6 +300,10 @@ static struct mcu_type_s mcu_types[] = {"atxmega16e5", AVR_ISA_XMEGA, bfd_mach_avrxmega2}, {"atxmega8e5", AVR_ISA_XMEGA, bfd_mach_avrxmega2}, {"atxmega32x1", AVR_ISA_XMEGA, bfd_mach_avrxmega2}, + {"attiny416", AVR_ISA_XMEGA, bfd_mach_avrxmega3}, + {"attiny417", AVR_ISA_XMEGA, bfd_mach_avrxmega3}, + {"attiny816", AVR_ISA_XMEGA, bfd_mach_avrxmega3}, + {"attiny817", AVR_ISA_XMEGA, bfd_mach_avrxmega3}, {"atxmega64a3", AVR_ISA_XMEGA, bfd_mach_avrxmega4}, {"atxmega64a3u",AVR_ISA_XMEGAU, bfd_mach_avrxmega4}, {"atxmega64a4u",AVR_ISA_XMEGAU, bfd_mach_avrxmega4}, |