summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2003-05-15 00:04:34 +0000
committerThiemo Seufer <ths@networkno.de>2003-05-15 00:04:34 +0000
commit9dd45ad9839b3d194d128d1b1dbde5136e1dc3e1 (patch)
tree90c986de5f2dfdf779ab27ddeda145dcda66f851 /bfd
parent56e5ec994ba0b2c7dd77c29184592bee844fd002 (diff)
downloadbinutils-redhat-9dd45ad9839b3d194d128d1b1dbde5136e1dc3e1.tar.gz
* elf32-mips.c (gprel32_with_gp): Remove useless N64 ABI case.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-mips.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 550dcc0282..c6ec77c12c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * elf32-mips.c (gprel32_with_gp): Remove useless N64 ABI case.
+
2003-05-13 Stephane Carrez <stcarrez@nerim.fr>
* elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Check for
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 85819d55d3..3b472464b1 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -1197,13 +1197,7 @@ gprel32_with_gp (abfd, symbol, reloc_entry, input_section, relocateable, data,
if (reloc_entry->address > input_section->_cooked_size)
return bfd_reloc_outofrange;
- if (reloc_entry->howto->src_mask == 0)
- {
- /* This case arises with the 64-bit MIPS ELF ABI. */
- val = 0;
- }
- else
- val = bfd_get_32 (abfd, (bfd_byte *) data + reloc_entry->address);
+ val = bfd_get_32 (abfd, (bfd_byte *) data + reloc_entry->address);
/* Set val to the offset into the section or symbol. */
val += reloc_entry->addend;