diff options
author | DJ Delorie <dj@redhat.com> | 2005-07-26 03:21:53 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-07-26 03:21:53 +0000 |
commit | fd54057a29e296d29e662780fc6079e42c742228 (patch) | |
tree | 1a109b9e7d8a9108edda9722d9e1f392e74cf070 /include | |
parent | 030cf60a5d8687b18dbe76050ee33490fc96e075 (diff) | |
download | gdb-fd54057a29e296d29e662780fc6079e42c742228.zip gdb-fd54057a29e296d29e662780fc6079e42c742228.tar.gz gdb-fd54057a29e296d29e662780fc6079e42c742228.tar.bz2 |
[bfd]
* reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
R_M32C_HI8, R_M32C_HI16.
(m32c_reloc_map): Likewise.
(m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
[cpu]
* m32c.opc (parse_unsigned8): Add %dsp8().
(parse_signed8): Add %hi8().
(parse_unsigned16): Add %dsp16().
(parse_signed16): Add %lo16() and %hi16().
(parse_lab_5_3): Make valuep a bfd_vma *.
[gas]
* config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
Support %mod() modifiers from opcodes.
* doc/c-m32c.texi (M32C-Modifiers): New section.
[include/elf]
* m32c.h: Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, and R_M32C_HI16.
[opcodes]
* m32c-asm.c Regenerate.
* m32c-dis.c Regenerate.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/m32c.h | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 2947b66..b137091 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2005-07-25 DJ Delorie <dj@redhat.com> + + * m32c.h: Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, and R_M32C_HI16. + 2005-07-25 Jan Hubicka <jh@suse.cz> * x86-64.h (SHN_X86_64_LCOMMON): New. diff --git a/include/elf/m32c.h b/include/elf/m32c.h index 5d8a9a3..8054173 100644 --- a/include/elf/m32c.h +++ b/include/elf/m32c.h @@ -30,6 +30,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., RELOC_NUMBER (R_M32C_32, 3) RELOC_NUMBER (R_M32C_8_PCREL, 4) RELOC_NUMBER (R_M32C_16_PCREL, 5) + + /* 8 bit unsigned address, used for dsp8[a0] etc */ + RELOC_NUMBER (R_M32C_8, 6) + /* Bits 0..15 of an address, for SMOVF's A0, A1A0, etc. */ + RELOC_NUMBER (R_M32C_LO16, 7) + /* Bits 16..23 of an address, for SMOVF's R1H etc. */ + RELOC_NUMBER (R_M32C_HI8, 8) + /* Bits 16..31 of an address, for LDE's A1A0 etc. */ + RELOC_NUMBER (R_M32C_HI16, 9) + END_RELOC_NUMBERS (R_M32C_max) #define EF_M32C_CPU_M16C 0x00000075 /* default */ |