aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-13 14:41:18 +0000
committerNick Clifton <nickc@redhat.com>2004-05-13 14:41:18 +0000
commit0da76f83eb29135ae1bd52ba5962721fb1d0c6fc (patch)
tree216775d9b34d02cfc91fa714163ab9703a49577f /gas
parent4b363073298671c9a2a096d2ba70dd7586315c4c (diff)
downloadgdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.zip
gdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.tar.gz
gdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.tar.bz2
Handle dwarf3 format CIE entries.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/dw2gencfi.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 93b930d..eec43a8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-13 Paul Brook <paul@codesourcery.com>
+
+ * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
+
2004-05-13 Joel Sherrill <joel@oarcorp.com>
* configure.in (or32-*-rtems*): Switch to elf.
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index ff0aa35..05d7e3d 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -845,7 +845,10 @@ output_cie (struct cie_entry *cie)
out_one (0);
out_uleb128 (DWARF2_LINE_MIN_INSN_LENGTH); /* Code alignment */
out_sleb128 (DWARF2_CIE_DATA_ALIGNMENT); /* Data alignment */
- out_one (cie->return_column); /* Return column */
+ if (DW_CIE_VERSION == 1) /* Return column. */
+ out_one (cie->return_column);
+ else
+ out_uleb128 (cie->return_column);
out_uleb128 (1); /* Augmentation size */
#if defined DIFF_EXPR_OK || defined tc_cfi_emit_pcrel_expr
out_one (DW_EH_PE_pcrel | DW_EH_PE_sdata4);