From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by sourceware.org (Postfix) with ESMTPS id E9DEE3858010 for ; Wed, 4 May 2022 10:00:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E9DEE3858010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=seketeli.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=seketeli.org Received: (Authenticated sender: dodji@seketeli.org) by mail.gandi.net (Postfix) with ESMTPSA id 78FC920003; Wed, 4 May 2022 10:00:49 +0000 (UTC) Received: by localhost (Postfix, from userid 1000) id B53865802BD; Wed, 4 May 2022 12:00:48 +0200 (CEST) From: Dodji Seketeli To: Giuliano Procida Cc: libabigail@sourceware.org, kernel-team@android.com, maennich@google.com, willdeacon@google.com Subject: Re: [PATCH 1/2] symtab: refactor ELF symbol value tweaks Organization: Me, myself and I References: <20220407162926.2076100-1-gprocida@google.com> X-Operating-System: Fedora 36 X-URL: http://www.seketeli.net/~dodji Date: Wed, 04 May 2022 12:00:48 +0200 In-Reply-To: <20220407162926.2076100-1-gprocida@google.com> (Giuliano Procida's message of "Thu, 7 Apr 2022 17:29:25 +0100") Message-ID: <87r159ehwv.fsf@seketeli.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 10:00:54 -0000 Hello Giuliano, Giuliano Procida a =C3=A9crit: > A previous changes duplicated some logic for tweaking ELF symbol > values (and possibly updating some bookkeeping information). > > This change refactors the code so the logic is in one place, in > symtab::get_symbol_value. > > * src/abg-symtab-reader.cc (symtab::load_): Replace address > tweaking logic with a call to get_symbol_value. > (symtab::add_alternative_address_lookups): Likewise. > (symtab::get_symbol_value): New function containing address > tweaking logic for PPC and ARM. > > Signed-off-by: Giuliano Procida Applied to master, thanks! [...] Cheers, --=20 Dodji