From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27376 invoked by alias); 24 Jul 2017 10:33:30 -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 26588 invoked by uid 89); 24 Jul 2017 10:33:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*M:stream, 40pm, 40PM, H*r:sk:ADH-AES X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no 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; Mon, 24 Jul 2017 10:33:28 +0000 Received: from stream.wildebeest.org (ip4da134f7.direct-adsl.nl [77.161.52.247]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 2191D302BB02 for ; Mon, 24 Jul 2017 12:33:26 +0200 (CEST) Received: by stream.wildebeest.org (Postfix, from userid 1000) id 10713105BB2; Mon, 24 Jul 2017 12:33:38 +0200 (CEST) Date: Mon, 24 Jul 2017 10:33:00 -0000 From: Mark Wielaard To: elfutils-devel@sourceware.org Subject: Re: [PATCH] strip: Deal with ARM data marker symbols pointing to debug sections. Message-ID: <20170724103338.GD8002@stream> References: <1500632260-29651-1-git-send-email-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1500632260-29651-1-git-send-email-mark@klomp.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00039.txt.bz2 On Fri, Jul 21, 2017 at 12:17:40PM +0200, Mark Wielaard wrote: > ARM data marker symbols "$d" indicate the start of a sequence of data > items in a section. For data only sections no data marker symbol is > necessary, but may be put pointing to the start of the section. > binutils however has a bug which places a data marker symbol somewhere > inside the section (at least for .debug_frame). > https://sourceware.org/bugzilla/show_bug.cgi?id=21809 > > When strip finds a symbol pointing to a debug section that would be > put into the .debug file then it will copy over the whole symbol table. > This isn't necessary because the symbol is redundant. > > Add an ebl hook to recognize data marker symbols with implementations > for arm and aarch64. Use it in strip to strip such symbols from the > symbol table if they point to a debug section. Tested in Fedora rawhide where it fixed an rpm testsuite issue on arm. Pushed to master.