From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88245 invoked by alias); 25 Apr 2018 11:25:16 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 87858 invoked by uid 89); 25 Apr 2018 11:24:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.4 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Apr 2018 11:24:45 +0000 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 794D931F8B4E; Wed, 25 Apr 2018 13:24:43 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 73066413CB83; Wed, 25 Apr 2018 13:24:43 +0200 (CEST) From: Mark Wielaard To: elfutils-devel@sourceware.org Cc: Mark Wielaard Subject: [PATCH] libebl: Add new DWARF5 debug section names to default_debugscn_p. Date: Wed, 25 Apr 2018 11:25:00 -0000 Message-Id: <1524655477-8976-1-git-send-email-mark@klomp.org> X-Mailer: git-send-email 1.8.3.1 X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2018-q2/txt/msg00022.txt.bz2 This adds the new DWARF5 debug section names .debug_addr, .debug_line_str, .debug_loclists, .debug_names, .debug_rnglists and .debug_str_offsets. This makes sure eu-strip knows to strip them away. Note that it doesn't add the .dwo variants, nor the .dwp only section names .debug_cu_index and .debug_tu_index, nor the .debug_sup section for supplemental DWARF files. Signed-off-by: Mark Wielaard --- libebl/ChangeLog | 6 ++++++ libebl/eblopenbackend.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 66e8aa3..aa82e3a 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,9 @@ +2018-04-25 Mark Wielaard + + * eblopenbackend.c (default_debugscn_p): Add new DWARF5 sections + .debug_addr, .debug_line_str, .debug_loclists, .debug_names, + .debug_rnglists and .debug_str_offsets. + 2018-04-19 Andreas Schwab * eblopenbackend.c (machines): Add entries for RISC-V. diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index fcf86f6..8b063f4 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -640,6 +640,13 @@ default_debugscn_p (const char *name) ".gdb_index", /* GNU/DWARF 5 extension/proposal */ ".debug_macro", + /* DWARF 5 */ + ".debug_addr", + ".debug_line_str", + ".debug_loclists", + ".debug_names", + ".debug_rnglists", + ".debug_str_offsets", /* SGI/MIPS DWARF 2 extensions */ ".debug_weaknames", ".debug_funcnames", -- 1.8.3.1