This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]