diff options
Diffstat (limited to 'bfd/elf32-m32r.c')
-rw-r--r-- | bfd/elf32-m32r.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c index eb2237f..214fed1 100644 --- a/bfd/elf32-m32r.c +++ b/bfd/elf32-m32r.c @@ -1106,9 +1106,16 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section, sym = local_syms + r_symndx; sec = local_sections[r_symndx]; sym_name = "<local symbol>"; +#ifndef USE_REL + relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel); + addend = rel->r_addend; +#else + /* FIXME: This won't handle local relocations against SEC_MERGE + symbols. See elf32-i386.c for how to do this. */ relocation = (sec->output_section->vma + sec->output_offset + sym->st_value); +#endif } else { |