]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf64-sh64.c
PR ld/13991
[thirdparty/binutils-gdb.git] / bfd / elf64-sh64.c
index d19bb07d5e5305a2163ae62c77777a521a326394..60f13cdf42a1dde1430e96ed68397823c7223ffa 100644 (file)
@@ -1514,7 +1514,7 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
              _("Unexpected STO_SH5_ISA32 on local symbol is not handled"),
              input_bfd, input_section, rel->r_offset));
 
-         if (sec != NULL && elf_discarded_section (sec))
+         if (sec != NULL && discarded_section (sec))
            /* Handled below.  */
            ;
          else if (info->relocatable)
@@ -1661,7 +1661,7 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
            }
        }
 
-      if (sec != NULL && elf_discarded_section (sec))
+      if (sec != NULL && discarded_section (sec))
        RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
                                         rel, relend, howto, contents);