From: Rafeal Auler Date: Wed, 22 Aug 2018 09:04:09 +0000 (+0100) Subject: Fix AArch64 stub layout algorithm to allow for the fact that section layut might... X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~1033 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3da64fe404031c093e8b59565d935fed214e28c1;p=thirdparty%2Fbinutils-gdb.git Fix AArch64 stub layout algorithm to allow for the fact that section layut might change a stub's target location. PR 23560 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Always update the stub's target, since it may have been changed after the layout. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6eac6681637..6946a65ad14 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2018-08-22 Rafeal Auler + + PR 23560 + * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Always update the + stub's target, since it may have been changed after the layout. + 2018-08-21 John Darington * elf32-s12z.c (opru18_reloc): New function. diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 868144489ba..ee09cd74117 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -4414,6 +4414,9 @@ elfNN_aarch64_size_stubs (bfd *output_bfd, { /* The proper stub has already been created. */ free (stub_name); + /* Always update this stub's target since it may have + changed after layout. */ + stub_entry->target_value = sym_value + irela->r_addend; continue; }