From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id 0D1FF3857800 for ; Mon, 14 Sep 2020 10:24:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0D1FF3857800 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=mark@tarox.wildebeest.org Received: from tarox.wildebeest.org (tarox.wildebeest.org [172.31.17.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 04B7B300BC89; Mon, 14 Sep 2020 12:24:19 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id F03DB4000CBE; Mon, 14 Sep 2020 12:24:18 +0200 (CEST) From: Mark Wielaard To: dwz@sourceware.org Cc: Mark Wielaard Subject: [PATCH 1/4] Recognize some new DWARF5 .debug sections. Date: Mon, 14 Sep 2020 12:23:52 +0200 Message-Id: <20200914102355.8137-2-mark@klomp.org> X-Mailer: git-send-email 2.18.4 In-Reply-To: <20200914102355.8137-1-mark@klomp.org> References: <20200914102355.8137-1-mark@klomp.org> X-Spam-Status: No, score=-37.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KHOP_HELO_FCRDNS, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2020 10:24:21 -0000 Recognize .debug_loclists, .debug_rnglists, .debug_line_str. loclists, rnglists and line_str cannot be moved into a supplemental file. We already handle .debug_macro (the replacement for .debug_macinfo). .debug_pubnames and .debug_pubtypes are no more, but we deleted them already when found. There is a standardized variant of .gdb_index, .debug_names, but gdb works fine with .gdb_index even for DWARF5, so just keep supporting .gdb_index for now. There are two new sections .debug_addr and .debug_str_offsets which are only emitted in split-dwarf mode by GCC. For now we don't recognize those because we don't handle split-dwarf. Finally there is .debug_sup which is the standardized variant of .gnu_debugaltlink. Which we should generate when operating in "full" DWARF5 mode. But that would require changes to some consumers. * dwz.c (enum debug_section_kind): Add DEBUG_LOCLISTS, DEBUG_RNGLISTS and DEBUG_LINE_STR. (debug_sections): Add .debug_loclists, .debug_rnglists and .debug_line_str. --- dwz.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dwz.c b/dwz.c index 7ec0623..6a4c96c 100644 --- a/dwz.c +++ b/dwz.c @@ -687,8 +687,11 @@ enum debug_section_kind DEBUG_GNU_PUBTYPES, DEBUG_MACINFO, DEBUG_LOC, + DEBUG_LOCLISTS, DEBUG_FRAME, DEBUG_RANGES, + DEBUG_RNGLISTS, + DEBUG_LINE_STR, DEBUG_GDB_SCRIPTS, GDB_INDEX, GNU_DEBUGALTLINK, @@ -720,8 +723,11 @@ static struct { ".debug_gnu_pubtypes", NULL, NULL, 0, 0, 0 }, { ".debug_macinfo", NULL, NULL, 0, 0, 0 }, { ".debug_loc", NULL, NULL, 0, 0, 0 }, + { ".debug_loclists", NULL, NULL, 0, 0, 0 }, { ".debug_frame", NULL, NULL, 0, 0, 0 }, { ".debug_ranges", NULL, NULL, 0, 0, 0 }, + { ".debug_rnglists", NULL, NULL, 0, 0, 0 }, + { ".debug_line_str", NULL, NULL, 0, 0, 0 }, { ".debug_gdb_scripts", NULL, NULL, 0, 0, 0 }, { ".gdb_index", NULL, NULL, 0, 0, 0 }, { ".gnu_debugaltlink", NULL, NULL, 0, 0, 0 }, -- 2.18.4