]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Emit address_size and segment_size for version 5 line number tables.
authorCary Coutant <ccoutant@google.com>
Fri, 23 Jan 2015 21:53:30 +0000 (13:53 -0800)
committerCary Coutant <ccoutant@google.com>
Sat, 24 Jan 2015 00:35:06 +0000 (16:35 -0800)
2015-01-23  Cary Coutant  <ccoutant@google.com>

gas/
* dwarf2dbg.c (out_debug_line): Emit address_size and segment_size
for version 5 line number tables.

gas/dwarf2dbg.c

index 506eedf55c700d1137c6167f8b9fd8ebaf895d74..21c53e3cd0915803749d4d4754ad2621119217aa 100644 (file)
@@ -2083,6 +2083,13 @@ out_debug_line (segT line_seg, segT str_seg)
   /* Version.  */
   out_two (version);
 
+  /* Version 5 adds address_size and segment_size. */
+  if (version >= 5)
+    {
+      out_byte (sizeof_address);
+      out_byte (0);
+    }
+
   /* Length of the prologue following this length.  */
   prologue_start = symbol_temp_make ();
   prologue_end = symbol_temp_make ();