summaryrefslogtreecommitdiff
path: root/bfd/elf64-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2005-02-07 02:44:59 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2005-02-07 02:44:59 +0000
commite848583fe2e3741e7949d9233dc5e84c45f23e89 (patch)
treea0b2680ef6d6189f6891cdf6434c224e712b4f52 /bfd/elf64-mips.c
parent2ab67434d9f582d8bd1dfd68854cc18ef18f1a15 (diff)
downloadgdb-e848583fe2e3741e7949d9233dc5e84c45f23e89.tar.gz
* elf32-mips.c (mips_elf_gprel32_reloc): Reject
R_MIPS_GPREL32 relocations against external symbols. * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect comment.
Diffstat (limited to 'bfd/elf64-mips.c')
-rw-r--r--bfd/elf64-mips.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c
index 699b8628cf3..e1051be9b08 100644
--- a/bfd/elf64-mips.c
+++ b/bfd/elf64-mips.c
@@ -1586,8 +1586,7 @@ mips_elf64_gprel32_reloc (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
bfd_vma relocation;
bfd_vma val;
- /* If we're relocating, and this is an external symbol, we don't want
- to change anything. */
+ /* R_MIPS_GPREL32 relocations are defined for local symbols only. */
if (output_bfd != NULL
&& (symbol->flags & BSF_SECTION_SYM) == 0
&& (symbol->flags & BSF_LOCAL) != 0)