Fix AArch64 stub layout algorithm to allow for the fact that section layut might...
[deliverable/binutils-gdb.git] / bfd / elfnn-aarch64.c
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.023706 seconds and 4 git commands to generate.