This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: mips_elf_calculate_relocation() returns false.
- From: Don Lindsay <lindsayd at cisco dot com>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, <binutils at sources dot redhat dot com>
- Date: Wed, 30 Jan 2002 16:11:35 -0800 (PST)
- Subject: Re: mips_elf_calculate_relocation() returns false.
> Oh. I'll take a look at them then. Wanna forward the patch to me
> personally again? (and can you use unified diffs please? :)
Gee, -c2p is what Ange used to demand :-)
Index: bfd/elf32-mips.c
===================================================================
RCS file: /home/cvs/gcc-c302/gnu/binutils-2.11.2/bfd/elf32-mips.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 elf32-mips.c
--- bfd/elf32-mips.c 2001/11/11 00:00:21 1.1.1.1
+++ bfd/elf32-mips.c 2002/01/31 00:08:55
@@ -6272,7 +6272,7 @@
{
g = mips_elf_local_got_index (abfd, info, symbol + addend);
if (g == (bfd_vma) -1)
- return false;
+ return bfd_reloc_outofrange;
}
/* Convert GOT indices to actual offsets. */
@@ -6328,7 +6328,7 @@
symbol,
&value,
input_section))
- return false;
+ return bfd_reloc_outofrange;
}
else
{
@@ -6444,7 +6444,7 @@
local_sections, false);
value = mips_elf_got16_entry (abfd, info, symbol + addend, forced);
if (value == (bfd_vma) -1)
- return false;
+ return bfd_reloc_outofrange;
value
= mips_elf_got_offset_from_index (elf_hash_table (info)->dynobj,
abfd,
@@ -6488,7 +6488,7 @@
case R_MIPS_GOT_PAGE:
value = mips_elf_got_page (abfd, info, symbol + addend, NULL);
if (value == (bfd_vma) -1)
- return false;
+ return bfd_reloc_outofrange;
value = mips_elf_got_offset_from_index (elf_hash_table (info)->dynobj,
abfd,
value);