X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Femultempl%2Farmelf.em;h=34372ba7b0b64055097325f39cf1959de1e75cb3;hb=5fd104addfddb68844fb8df67be832ee98ad9888;hp=bb32bbbda419b6c44a48a3e0a06c2a5d2466a98b;hpb=075a2b89c71796f1f0f38f51b0f60d4048c49410;p=binutils-gdb.git diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index bb32bbbda41..34372ba7b0b 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright (C) 1991-2019 Free Software Foundation, Inc. +# Copyright (C) 1991-2020 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -27,6 +27,7 @@ fragment <the_bfd, stub_sec_name, flags); if (stub_sec == NULL) goto err_ret; - bfd_set_section_alignment (stub_file->the_bfd, stub_sec, alignment_power); + bfd_set_section_alignment (stub_sec, alignment_power); os = lang_output_section_get (output_section); @@ -478,8 +486,7 @@ gld${EMULATION_NAME}_finish (void) /* Special procesing is required for a Thumb entry symbol. The bottom bit of its address must be set. */ val = (h->u.def.value - + bfd_get_section_vma (link_info.output_bfd, - h->u.def.section->output_section) + + bfd_section_vma (h->u.def.section->output_section) + h->u.def.section->output_offset); val |= 1;