From: Christian Eggers Date: Sun, 10 Mar 2019 18:21:55 +0000 (+0100) Subject: dwarf2: Use octets for .debug_line prologue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38c24f42c97af59ad83505ed735e689c63d3ca45;p=binutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a03bf3bb56e..d4ae7a02d91 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2019-03-13 Christian Eggers + + * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue. + 2019-03-13 Christian Eggers * dwarf2dbg.c (out_debug_line): Use octets for dwarf2 headers. diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 7b0e8fdc4a7..896a8f125ac 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)