Replace 'return false' with a return of a bfd_reloc_ error code.
authorNick Clifton <nickc@redhat.com>
Thu, 31 Jan 2002 11:17:22 +0000 (11:17 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 31 Jan 2002 11:17:22 +0000 (11:17 +0000)
bfd/ChangeLog
bfd/elf32-mips.c

index 824e8517204c3820a08debc6d64f34a2d4167448..fad9c8ec93fd2e9ad1b0f514c70fc4deb5560ac1 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-31  Nick Clifton  <nickc@cambridge.redhat.com>
+           Don Lindsay  <lindsayd@cisco.com>
+
+       * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
+       false' with a return of a bfd_reloc_ error code.
+
 2002-01-31  Hans-Peter Nilsson  <hp@axis.com>
 
        * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
index 162ff412de752595330dfe16fb4cf7b07abae8b8..a84112ef8ddeba1ee2c0e44d084e3e3ab2eeee0e 100644 (file)
@@ -6788,7 +6788,7 @@ mips_elf_calculate_relocation (abfd,
        {
          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.  */
@@ -6848,7 +6848,7 @@ mips_elf_calculate_relocation (abfd,
                                                   symbol,
                                                   &value,
                                                   input_section))
-           return false;
+           return bfd_reloc_undefined;
        }
       else
        {
@@ -6969,7 +6969,7 @@ mips_elf_calculate_relocation (abfd,
                                                  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,
@@ -7013,7 +7013,7 @@ mips_elf_calculate_relocation (abfd,
     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);