From b6f90d81917345a1d761d9ea2a7a44c634d4da05 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 14 Feb 2006 07:16:24 +0000 Subject: [PATCH] * dwarf2-info.c (yasm_dwarf2__generate_info): Set section alignment to 0 for .debug_info and .debug_abbrev; this fixes DWARF2 for gdb on Linux. svn path=/trunk/yasm/; revision=1388 --- modules/dbgfmts/dwarf2/dwarf2-info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/dbgfmts/dwarf2/dwarf2-info.c b/modules/dbgfmts/dwarf2/dwarf2-info.c index a739772f..dbd7aa74 100644 --- a/modules/dbgfmts/dwarf2/dwarf2-info.c +++ b/modules/dbgfmts/dwarf2/dwarf2-info.c @@ -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); -- 2.40.0