]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/m68hc1xelf.em
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / emultempl / m68hc1xelf.em
index 3fa325a4498aa8dbee8c3d27aec3e3a66cb857d4..ef35b3c37d4b16871a1dd8a98bd6dd1c21fa0415 100644 (file)
@@ -1,5 +1,5 @@
 # This shell script emits a C file. -*- C -*-
-#   Copyright (C) 1991-2019 Free Software Foundation, Inc.
+#   Copyright (C) 1991-2021 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra m68hc12-elf
+# This file is sourced from elf.em, and defines extra m68hc12-elf
 # and m68hc11-elf specific routines.  It is used to generate the
 # HC11/HC12 trampolines to call a far function by using a normal 'jsr/bsr'.
 #
@@ -212,10 +212,8 @@ hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp)
 
        case lang_input_section_enum:
          if (l->input_section.section == info->input_section
-             || strcmp (bfd_get_section_name (l->input_section.section->owner,
-                                              l->input_section.section),
-                        bfd_get_section_name (info->input_section->owner,
-                                              info->input_section)) == 0)
+             || strcmp (bfd_section_name (l->input_section.section),
+                        bfd_section_name (info->input_section)) == 0)
            {
              /* We've found our section.  Insert the stub immediately
                 before its associated input section.  */