diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-14 01:36:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-14 01:36:01 +0000 |
commit | b7384d226b8ae23d87d4afc7ffc04ca68ec9d7b4 (patch) | |
tree | 9220841a786ba4c78c688b89c524ef7cb84b3331 /bfd | |
parent | e9f03cd4509f74e4ffbfb11878149d4b31401923 (diff) | |
download | gdb-b7384d226b8ae23d87d4afc7ffc04ca68ec9d7b4.zip gdb-b7384d226b8ae23d87d4afc7ffc04ca68ec9d7b4.tar.gz gdb-b7384d226b8ae23d87d4afc7ffc04ca68ec9d7b4.tar.bz2 |
Add reloc.c entries MIPS_CALL_HI16/MIPS_CALL_LO16.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 1 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 2 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 4 | ||||
-rw-r--r-- | bfd/libbfd.h | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1bbeaea..b3fef1a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -13,6 +13,7 @@ Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com> * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define. (BFD_RELOC_MIPS_GOT_LO16): Define. + (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define. * bfd-in2.h, libbfd.h: Rebuild. * elf32-mips.c (mips_reloc_map): Map new relocs. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index c19551a..c5ea215 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1602,6 +1602,8 @@ to compensate for the borrow when the low bits are added. */ #define BFD_RELOC_MIPS_GPREL32 BFD_RELOC_GPREL32 BFD_RELOC_MIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MIPS_CALL_LO16, /* i386/elf relocations */ BFD_RELOC_386_GOT32, diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index e9bdba3..20d159f 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1252,7 +1252,9 @@ static CONST struct elf_reloc_map mips_reloc_map[] = { BFD_RELOC_MIPS_CALL16, R_MIPS_CALL16 }, { BFD_RELOC_MIPS_GPREL32, R_MIPS_GPREL32 }, { BFD_RELOC_MIPS_GOT_HI16, R_MIPS_GOT_HI16 }, - { BFD_RELOC_MIPS_GOT_LO16, R_MIPS_GOT_LO16 } + { BFD_RELOC_MIPS_GOT_LO16, R_MIPS_GOT_LO16 }, + { BFD_RELOC_MIPS_CALL_HI16, R_MIPS_CALL_HI16 }, + { BFD_RELOC_MIPS_CALL_LO16, R_MIPS_CALL_LO16 } }; /* Given a BFD reloc type, return a howto structure. */ diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 6f18e90..296a8b7 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -625,6 +625,8 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "BFD_RELOC_MIPS_CALL16", "BFD_RELOC_MIPS_GOT_HI16", "BFD_RELOC_MIPS_GOT_LO16", + "BFD_RELOC_MIPS_CALL_HI16", + "BFD_RELOC_MIPS_CALL_LO16", "BFD_RELOC_386_GOT32", "BFD_RELOC_386_PLT32", "BFD_RELOC_386_COPY", |