aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@gmx.de>2019-03-10 19:21:55 +0100
committerAlan Modra <amodra@gmail.com>2019-03-13 13:29:35 +1030
commit38c24f42c97af59ad83505ed735e689c63d3ca45 (patch)
tree4dadc3f4c214e8f40fb200788ad225c052ce1e25
parent7235427998571b6d8267e7ac72a52d7b082f4c2b (diff)
downloadbinutils-38c24f42c97af59ad83505ed735e689c63d3ca45.zip
binutils-38c24f42c97af59ad83505ed735e689c63d3ca45.tar.gz
binutils-38c24f42c97af59ad83505ed735e689c63d3ca45.tar.bz2
dwarf2: Use octets for .debug_line prologue
Like the u32 size field at the beginning of the section, also the prologue size must be expressed in octets. * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/dwarf2dbg.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a03bf3b..d4ae7a0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2019-03-13 Christian Eggers <ceggers@gmx.de>
+ * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue.
+
+2019-03-13 Christian Eggers <ceggers@gmx.de>
+
* dwarf2dbg.c (out_debug_line): Use octets for dwarf2 headers.
(out_debug_aranges, out_debug_info): Likewise.
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 7b0e8fd..896a8f1 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1803,7 +1803,7 @@ out_debug_line (segT line_seg)
exp.X_op_symbol = prologue_start;
exp.X_add_number = 0;
emit_expr (&exp, sizeof_offset);
- symbol_set_value_now (prologue_start);
+ symbol_set_value_now_octets (prologue_start);
/* Parameters of the state machine. */
out_byte (DWARF2_LINE_MIN_INSN_LENGTH);
@@ -1828,7 +1828,7 @@ out_debug_line (segT line_seg)
out_file_list ();
- symbol_set_value_now (prologue_end);
+ symbol_set_value_now_octets (prologue_end);
/* For each section, emit a statement program. */
for (s = all_segs; s; s = s->next)