aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2018-07-29 12:51:23 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2018-07-29 12:51:23 -0400
commit29e6f4745eca5ed82c7dcde09cb0bdde1f8a2eaa (patch)
treeb789f88c66c36f9a6d16a65fba1bd8e76a3284a6 /gas
parent51b79795294ad32c7bfeafaebe4c921db75491ed (diff)
downloadbinutils-29e6f4745eca5ed82c7dcde09cb0bdde1f8a2eaa.zip
binutils-29e6f4745eca5ed82c7dcde09cb0bdde1f8a2eaa.tar.gz
binutils-29e6f4745eca5ed82c7dcde09cb0bdde1f8a2eaa.tar.bz2
Fix unwind offset for start_symbol.
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-hppa.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c941f99..f2a0c6a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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*.
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index e69fdb2..ccae68c 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -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);