diff options
author | Nick Clifton <nickc@redhat.com> | 2002-01-31 11:17:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-01-31 11:17:22 +0000 |
commit | caf8ca8e1c4fbebb2f611a3d33f2449fd8dea4f3 (patch) | |
tree | 9285f4e8650846e16c993da75b5824e16859255a /bfd | |
parent | e5dfef09182bd9e1523f6bc5e9a44e60171ff3c8 (diff) | |
download | gdb-caf8ca8e1c4fbebb2f611a3d33f2449fd8dea4f3.zip gdb-caf8ca8e1c4fbebb2f611a3d33f2449fd8dea4f3.tar.gz gdb-caf8ca8e1c4fbebb2f611a3d33f2449fd8dea4f3.tar.bz2 |
Replace 'return false' with a return of a bfd_reloc_ error code.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 824e851..fad9c8e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 162ff41..a84112e 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -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); |