summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2006-10-28 10:13:49 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2006-10-28 10:13:49 +0000
commit165b93e775da68589421df1c8dce01415af28635 (patch)
tree080b1687efc951d65a4248b777925ac41f90ef27 /bfd/elf32-mips.c
parent*** empty log message *** (diff)
downloadbinutils-gdb-165b93e775da68589421df1c8dce01415af28635.tar.gz
binutils-gdb-165b93e775da68589421df1c8dce01415af28635.tar.bz2
binutils-gdb-165b93e775da68589421df1c8dce01415af28635.zip
include/elf/
* mips.h (R_MIPS_GLOB_DAT): Define (R_MIPS_max): Bump by 1. bfd/ * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT. * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. (elf_mips_howto_table_rela): Likewise. * 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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index c5e7dd45d5e..ddad2da36ea 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -700,6 +700,21 @@ static reloc_howto_type elf_mips_howto_table_rel[] =
0x0000ffff, /* src_mask */
0x0000ffff, /* dst_mask */
FALSE), /* pcrel_offset */
+
+ /* 32 bit relocation with no addend. */
+ HOWTO (R_MIPS_GLOB_DAT, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_dont, /* complain_on_overflow */
+ _bfd_mips_elf_generic_reloc, /* special_function */
+ "R_MIPS_GLOB_DAT", /* name */
+ FALSE, /* partial_inplace */
+ 0x0, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ FALSE), /* pcrel_offset */
};
/* The reloc used for BFD_RELOC_CTOR when doing a 64 bit link. This