Fix unwind offset for start_symbol.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 29 Jul 2018 16:51:23 +0000 (12:51 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 29 Jul 2018 16:51:23 +0000 (12:51 -0400)
* config/tc-hppa.c: Include "struc-symbol.h".
(pa_build_unwind_subspace): Use call_info->start_symbol->sy_frag
instead of frag_now for local symbol replacement.

gas/ChangeLog
gas/config/tc-hppa.c

index c941f99490bd1b4770983b268ce5434c92c53c0d..f2a0c6a4083a2f3906b5bcd457766e9574a8a237 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-29  John David Anglin  <danglin@gcc.gnu.org>
+
+       * config/tc-hppa.c: Include "struc-symbol.h".
+       (pa_build_unwind_subspace): Use call_info->start_symbol->sy_frag
+       instead of frag_now for local symbol replacement.
+
 2018-07-27  Jim Wilson  <jimw@sifive.com>
 
        * configure.tgt (riscv*): Accept as alias for riscv32*.
index e69fdb2b397cf7563edab6fddbb652d8c4155917..ccae68cb4060688e282f4662065fe2a380fe80df 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "as.h"
 #include "safe-ctype.h"
+#include "struc-symbol.h"
 #include "subsegs.h"
 #include "dw2gencfi.h"
 
@@ -5989,7 +5990,8 @@ pa_build_unwind_subspace (struct call_info *call_info)
   else
     {
       symbolP = symbol_new (name, now_seg,
-                           S_GET_VALUE (call_info->start_symbol), frag_now);
+                           S_GET_VALUE (call_info->start_symbol),
+                           call_info->start_symbol->sy_frag);
       gas_assert (symbolP);
       S_CLEAR_EXTERNAL (symbolP);
       symbol_table_insert (symbolP);