]> granicus.if.org Git - yasm/commitdiff
* dwarf2-info.c (yasm_dwarf2__generate_info): Set section alignment to 0 for
authorPeter Johnson <peter@tortall.net>
Tue, 14 Feb 2006 07:16:24 +0000 (07:16 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 14 Feb 2006 07:16:24 +0000 (07:16 -0000)
.debug_info and .debug_abbrev; this fixes DWARF2 for gdb on Linux.

svn path=/trunk/yasm/; revision=1388

modules/dbgfmts/dwarf2/dwarf2-info.c

index a739772f8e29322b8a486ab31b037ad0395b256b..dbd7aa743b1fb8cd4b2cc9f20cb3ac3abdc04cea 100644 (file)
@@ -279,6 +279,9 @@ yasm_dwarf2__generate_info(yasm_dbgfmt_dwarf2 *dbgfmt_dwarf2,
        yasm_object_get_general(dbgfmt_dwarf2->object, ".debug_info", 0, 4, 0,
                                0, &new, 0);
 
+    yasm_section_set_align(debug_abbrev, 0, 0);
+    yasm_section_set_align(debug_info, 0, 0);
+
     /* Create abbreviation table entry for compilation unit */
     abbrev = yasm_xmalloc(sizeof(dwarf2_abbrev));
     abc = yasm_bc_create_common(&dwarf2_abbrev_bc_callback, abbrev, 0);