X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Femultempl%2Faarch64elf.em;h=d0519b3d7b24542aa7500c1bc706415e48bd4f40;hb=a78a19b15254de31c3d38b7e27469aaef0a30e97;hp=7ffb17e7a9cd87640a0a50d1e3dfbf3b1a442d9c;hpb=075a2b89c71796f1f0f38f51b0f60d4048c49410;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/emultempl/aarch64elf.em b/ld/emultempl/aarch64elf.em index 7ffb17e7a9..d0519b3d7b 100644 --- a/ld/emultempl/aarch64elf.em +++ b/ld/emultempl/aarch64elf.em @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright (C) 2009-2019 Free Software Foundation, Inc. +# Copyright (C) 2009-2020 Free Software Foundation, Inc. # Contributed by ARM Ltd. # # This file is part of the GNU Binutils. @@ -26,6 +26,7 @@ fragment <the_bfd, stub_sec_name, flags); @@ -178,7 +179,7 @@ elf${ELFSIZE}_aarch64_add_stub_section (const char *stub_sec_name, /* Long branch stubs contain a 64-bit address, so the section requires 8 byte alignment. */ - bfd_set_section_alignment (stub_file->the_bfd, stub_sec, 3); + bfd_set_section_alignment (stub_sec, 3); output_section = input_section->output_section; os = lang_output_section_get (output_section); @@ -217,7 +218,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)