This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Build hppa unwind info for more than .text
- To: binutils at sourceware dot cygnus dot com
- Subject: Build hppa unwind info for more than .text
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 17 Jan 2001 00:02:07 +1100 (EST)
- cc: parisc-linux at puffin dot external dot hp dot com
We were missing lots of unwind info, especially when using
-ffunction-sections, which confuses gdb.
gas/ChangeLog
* config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
depending on section flags, not just for .text.
Alan Modra
--
Linuxcare. Support for the Revolution.
Index: gas/config/tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.76
diff -u -p -r1.76 tc-hppa.c
--- tc-hppa.c 2001/01/14 07:03:49 1.76
+++ tc-hppa.c 2001/01/16 12:23:05
@@ -6053,7 +6053,9 @@ pa_build_unwind_subspace (call_info)
int reloc;
char c, *p;
- if (now_seg != text_section)
+ if ((bfd_get_section_flags (stdoutput, now_seg)
+ & (SEC_ALLOC | SEC_LOAD | SEC_READONLY))
+ != (SEC_ALLOC | SEC_LOAD | SEC_READONLY))
return;
reloc = R_PARISC_SEGREL32;