[binutils-gdb/binutils-2_31-branch] Fix unwind offset for call_info->start_symbol.

John David Anglin danglin@sourceware.org
Mon Jul 30 14:54:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=254ade2586dffb800a1a08726080ad6e05076ebb

commit 254ade2586dffb800a1a08726080ad6e05076ebb
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Mon Jul 30 10:52:34 2018 -0400

    Fix unwind offset for call_info->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.

Diff:
---
 gas/ChangeLog        | 6 ++++++
 gas/config/tc-hppa.c | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 355b2ff..b69035e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-30  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-18  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR gas/23418
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);



More information about the Binutils-cvs mailing list