X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Femultempl%2Fcskyelf.em;h=e84ddb68dbdc1fbd7861ba44125050a8a4367420;hb=a78a19b15254de31c3d38b7e27469aaef0a30e97;hp=10d037c80d6c6cbeb3bcac9ca58daa9904b0d602;hpb=075a2b89c71796f1f0f38f51b0f60d4048c49410;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/emultempl/cskyelf.em b/ld/emultempl/cskyelf.em index 10d037c80d..e84ddb68db 100644 --- a/ld/emultempl/cskyelf.em +++ b/ld/emultempl/cskyelf.em @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright (C) 2013-2019 Free Software Foundation, Inc. +# Copyright (C) 2013-2020 Free Software Foundation, Inc. # # This file is part of GNU Binutils. # @@ -25,6 +25,7 @@ fragment <the_bfd, stub_sec, 3); + bfd_set_section_alignment (stub_sec, 3); output_section = input_section->output_section; - secname = bfd_get_section_name (output_section->owner, output_section); + secname = bfd_section_name (output_section); os = lang_output_section_find (secname); info.input_section = input_section; @@ -196,7 +197,7 @@ elf32_csky_add_stub_section (const char *stub_sec_name, if (hook_in_stub (&info, &os->children.head)) return stub_sec; -err_ret: + err_ret: einfo (_("%X%P: can not make stub section: %E\n")); return NULL; }