]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/ppc64elf.em
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / emultempl / ppc64elf.em
index ef1fd0e7bcaa90faf10b234e400adc947e05ecd3..caa4f820837390eb828aa5ad338f8e0b460bface 100644 (file)
@@ -1,5 +1,5 @@
 # This shell script emits a C file. -*- C -*-
-# Copyright (C) 2002-2019 Free Software Foundation, Inc.
+# Copyright (C) 2002-2020 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 powerpc64-elf
+# This file is sourced from elf.em, and defines extra powerpc64-elf
 # specific routines.
 #
 fragment <<EOF
@@ -421,12 +421,11 @@ ppc_add_stub_section (const char *stub_sec_name, asection *input_section)
   stub_sec = bfd_make_section_anyway_with_flags (stub_file->the_bfd,
                                                 stub_sec_name, flags);
   if (stub_sec == NULL
-      || !bfd_set_section_alignment (stub_file->the_bfd, stub_sec,
-                                    (params.plt_stub_align > 5
-                                     ? params.plt_stub_align
-                                     : params.plt_stub_align < -5
-                                     ? -params.plt_stub_align
-                                     : 5)))
+      || !bfd_set_section_alignment (stub_sec, (params.plt_stub_align > 5
+                                               ? params.plt_stub_align
+                                               : params.plt_stub_align < -5
+                                               ? -params.plt_stub_align
+                                               : 5)))
     goto err_ret;
 
   output_section = input_section->output_section;
@@ -490,7 +489,7 @@ build_section_lists (lang_statement_union_type *statement)
     {
       asection *i = statement->input_section.section;
 
-      if (!((lang_input_statement_type *) i->owner->usrdata)->flags.just_syms
+      if (!bfd_input_just_syms (i->owner)
          && (i->flags & SEC_EXCLUDE) == 0
          && i->output_section != NULL
          && i->output_section->owner == link_info.output_bfd)