aboutsummaryrefslogtreecommitdiff
path: root/include/elf/avr.h
diff options
context:
space:
mode:
authorBarney Stratford <barney_stratford@fastmail.fm>2014-07-07 16:15:19 +0100
committerNick Clifton <nickc@redhat.com>2014-07-07 16:15:19 +0100
commit75f580857a7c65525a98a701c65d0814be04155f (patch)
tree48b3d0d2c727ec1d4cdfddb5d847fbf30bafdeb9 /include/elf/avr.h
parent38e229b2b3b5cc28c40ae114146bcdb45f60fc46 (diff)
downloadbinutils-75f580857a7c65525a98a701c65d0814be04155f.zip
binutils-75f580857a7c65525a98a701c65d0814be04155f.tar.gz
binutils-75f580857a7c65525a98a701c65d0814be04155f.tar.bz2
Adds support for writing values to AVR system I/O registers.
* elf32-avr.c: Handle R_AVR_PORT5 and R_AVR_PORT6. * reloc.c: Add BFD_RELOC_AVR_PORT5 and BFD_RELOC_AVR_PORT6. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * avr.h: Add R_AVR_PORT5 and R_AVR_PORT6. * config/tc-avr.c (avr_operand): Permit referring to r26-r31 by name as [xyz][hl]. Permit using a symbol whoes name begins with `r' to refer to a register. Allow arbitrary expressions for the P and p operators. (md_apply_fix): Check the BFD_RELOC_AVR_PORT5 and BFD_RELOC_AVR_PORT6 relocations.
Diffstat (limited to 'include/elf/avr.h')
-rw-r--r--include/elf/avr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/elf/avr.h b/include/elf/avr.h
index 0f3ed03..f2f500d 100644
--- a/include/elf/avr.h
+++ b/include/elf/avr.h
@@ -85,6 +85,8 @@ START_RELOC_NUMBERS (elf_avr_reloc_type)
RELOC_NUMBER (R_AVR_DIFF16, 31)
RELOC_NUMBER (R_AVR_DIFF32, 32)
RELOC_NUMBER (R_AVR_LDS_STS_16, 33)
+ RELOC_NUMBER (R_AVR_PORT6, 34)
+ RELOC_NUMBER (R_AVR_PORT5, 35)
END_RELOC_NUMBERS (R_AVR_max)
#endif /* _ELF_AVR_H */