diff options
Diffstat (limited to 'bfd/elf32-d10v.c')
-rw-r--r-- | bfd/elf32-d10v.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/elf32-d10v.c b/bfd/elf32-d10v.c index 5b6ed27..9ec0aa5 100644 --- a/bfd/elf32-d10v.c +++ b/bfd/elf32-d10v.c @@ -356,7 +356,7 @@ elf32_d10v_check_relocs (abfd, info, sec, relocs) static boolean elf32_d10v_relocate_section (output_bfd, info, input_bfd, input_section, contents, relocs, local_syms, local_sections) - bfd *output_bfd ATTRIBUTE_UNUSED; + bfd *output_bfd; struct bfd_link_info *info; bfd *input_bfd; asection *input_section; @@ -422,9 +422,7 @@ elf32_d10v_relocate_section (output_bfd, info, input_bfd, input_section, { sym = local_syms + r_symndx; sec = local_sections[r_symndx]; - relocation = (sec->output_section->vma - + sec->output_offset - + sym->st_value); + relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel); } else { |