diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-06-02 18:17:59 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 1999-06-02 18:17:59 +0000 |
commit | d2905643ff04ca59990fea39f2f4ba046fbd41b9 (patch) | |
tree | 43e110eb6cf21179d6279651d60ee2711a10094e /bfd/elf32-mips.c | |
parent | 42fdc50906dc55ae7d565b2981ed7ab9014c3b67 (diff) | |
download | gdb-d2905643ff04ca59990fea39f2f4ba046fbd41b9.zip gdb-d2905643ff04ca59990fea39f2f4ba046fbd41b9.tar.gz gdb-d2905643ff04ca59990fea39f2f4ba046fbd41b9.tar.bz2 |
* elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
(mips_elf64_howto_table_rela): Likewise.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 6828ba0..0ec4fa6 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -702,7 +702,23 @@ static reloc_howto_type elf_mips_howto_table[] = { R_MIPS_REL16 }, { R_MIPS_ADD_IMMEDIATE }, { R_MIPS_PJUMP }, - { R_MIPS_RELGOT } + { R_MIPS_RELGOT }, + + /* Protected jump conversion. This is an optimization hint. No + relocation is required for correctness. */ + HOWTO (R_MIPS_JALR, /* type */ + 0, /* rightshift */ + 0, /* size (0 = byte, 1 = short, 2 = long) */ + 0, /* bitsize */ + false, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_dont, /* complain_on_overflow */ + bfd_elf_generic_reloc, /* special_function */ + "R_MIPS_JALR", /* name */ + false, /* partial_inplace */ + 0x00000000, /* src_mask */ + 0x00000000, /* dst_mask */ + false), /* pcrel_offset */ }; /* The reloc used for BFD_RELOC_CTOR when doing a 64 bit link. This |