Build unwind info for more than just .text section.
authorAlan Modra <amodra@gmail.com>
Tue, 16 Jan 2001 13:06:14 +0000 (13:06 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Jan 2001 13:06:14 +0000 (13:06 +0000)
gas/ChangeLog
gas/config/tc-hppa.c

index 4703f253a8affbc13d1bb3dae6f5d7f6835ef9c4..b4370897a9cdf0f53f71af0b35e0c020f7947946 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-16  Alan Modra  <alan@linuxcare.com.au>
+
+       * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
+       depending on section flags, not just for .text.
+
 2001-01-15  Jim Wilson  <wilson@redhat.com>
 
        * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
index ab45da6ea48b4226a6e72e388624517da16f0aef..ac258ce307b90f0394b97e045f80d1a23386d141 100644 (file)
@@ -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;