Fix AArch64 stub layout algorithm to allow for the fact that section layut might...
authorRafeal Auler <rafaelauler@gmail.com>
Wed, 22 Aug 2018 09:04:09 +0000 (10:04 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 22 Aug 2018 09:04:09 +0000 (10:04 +0100)
PR 23560
* elfnn-aarch64.c (elfNN_aarch64_size_stubs): Always update the
stub's target, since it may have been changed after the layout.

bfd/ChangeLog
bfd/elfnn-aarch64.c

index 6eac6681637027eb0e5ed08df0fc342c89bac039..6946a65ad1426b6efe2a1e121f77d632ff091b94 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-22  Rafeal Auler  <rafaelauler@gmail.com>
+
+       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  <john@darrington.wattle.id.au>
 
        * elf32-s12z.c (opru18_reloc): New function.
index 868144489ba23ccfc4cfc92c1005c59fe4d8d5cb..ee09cd74117c717a399d0de262187b2dff57f5f9 100644 (file)
@@ -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;
                    }
 
This page took 0.047589 seconds and 4 git commands to generate.