aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mep.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-11-19 02:19:39 +0000
committerAlan Modra <amodra@gmail.com>2007-11-19 02:19:39 +0000
commitcdfeee4f478cdd6961e4c208a0acc6d03e564eb0 (patch)
tree1d8b59e696e44a071cc2cf6ad72b6d56798dbec3 /bfd/elf32-mep.c
parent8baca0f320428bee34a750dc917cdc22d221f1c8 (diff)
downloadgdb-cdfeee4f478cdd6961e4c208a0acc6d03e564eb0.zip
gdb-cdfeee4f478cdd6961e4c208a0acc6d03e564eb0.tar.gz
gdb-cdfeee4f478cdd6961e4c208a0acc6d03e564eb0.tar.bz2
* elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
* elflink.c (bfd_elf_perform_complex_relocation): Return status. Don't print reloc overflow message. * elf32-mep.c (mep_elf_relocate_section): Handle status from bfd_elf_perform_complex_relocation.
Diffstat (limited to 'bfd/elf32-mep.c')
-rw-r--r--bfd/elf32-mep.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c
index e5d33ca..7839617 100644
--- a/bfd/elf32-mep.c
+++ b/bfd/elf32-mep.c
@@ -513,18 +513,12 @@ mep_elf_relocate_section
if (info->relocatable)
continue;
- switch (r_type)
- {
- case R_RELC:
- bfd_elf_perform_complex_relocation (input_bfd, input_section,
- contents, rel, relocation);
- continue;
-
- default:
- r = mep_final_link_relocate (howto, input_bfd, input_section,
- contents, rel, relocation);
- break;
- }
+ if (r_type == R_RELC)
+ r = bfd_elf_perform_complex_relocation (input_bfd, input_section,
+ contents, rel, relocation);
+ else
+ r = mep_final_link_relocate (howto, input_bfd, input_section,
+ contents, rel, relocation);
if (r != bfd_reloc_ok)
{