PR ld/13177
[deliverable/binutils-gdb.git] / bfd / elf64-sh64.c
index bbef2a216cf86bbc111584d14259d8e4bd0e8d25..920247726763975d5bebcaf9b07686a0bae35841 100644 (file)
@@ -1630,7 +1630,11 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                                 STT_DATALABEL on the way to it.  */
                              | ((h->other & STO_SH5_ISA32) != 0
                                 && ! seen_stt_datalabel));
-             else if (!info->relocatable)
+             else if (!info->relocatable
+                      && (_bfd_elf_section_offset (output_bfd, info,
+                                                   input_section,
+                                                   rel->r_offset)
+                          != (bfd_vma) -1))
                {
                  (*_bfd_error_handler)
                    (_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
This page took 0.023868 seconds and 4 git commands to generate.