2010-03-15 Thomas Schwinge <thomas@codesourcery.com>
authorThomas Schwinge <tschwinge@gnu.org>
Mon, 15 Mar 2010 15:11:13 +0000 (15:11 +0000)
committerThomas Schwinge <tschwinge@gnu.org>
Mon, 15 Mar 2010 15:11:13 +0000 (15:11 +0000)
* dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
cases, and not only for .eh_frame.

gas/ChangeLog
gas/dw2gencfi.c

index 9a08df9..5110a41 100644 (file)
@@ -1,5 +1,8 @@
 2010-03-15  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
+       cases, and not only for .eh_frame.
+
        * dw2gencfi.c (output_cie): Make it more explicit which code paths
        belong to .eh_frame only.
 
index 09171da..36bd8d8 100644 (file)
@@ -1303,9 +1303,9 @@ output_cie (struct cie_entry *cie, bfd_boolean eh_frame, int align)
       if (cie->lsda_encoding != DW_EH_PE_omit)
        out_one ('L');
       out_one ('R');
-      if (cie->signal_frame)
-       out_one ('S');
     }
+  if (cie->signal_frame)
+    out_one ('S');
   out_one (0);
   out_uleb128 (DWARF2_LINE_MIN_INSN_LENGTH);   /* Code alignment.  */
   out_sleb128 (DWARF2_CIE_DATA_ALIGNMENT);     /* Data alignment.  */