From patchwork Mon Feb 19 13:06:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 875115 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-90355-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="xeaM+dM2"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zlPCg6Pqbz9ryf for ; Tue, 20 Feb 2018 00:06:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; q=dns; s=default; b=v96c05mOFN/Tj9+4 FISzWvknJxFicNNv6CM3nWSZMBp0VnxxI49QlXAMEhtNZECe9Ol0nXh1C0NdY+cQ NgrbOEKHKtGfHNzOAX2kmfueExUFzfo4YWKrI38GgEKLPJ563MhmDs4TgbCjmayC V+75BYEFNCjf5TM9lPzXPVok/ik= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id :mime-version:content-type; s=default; bh=kxaClD762k1StnC5ZIbIxt rhRFU=; b=xeaM+dM2vcVvB/NlzaCOJwSWS1ECMX/6CHKihJdsImbkNC90ZK0iUO c6h0zZx41ndiKdjDXFpzXvpOtEZS5CnbJcHLnmcdoi3WAYlRQVtrf6fhVrA15YEq 7LLTKFRjAOH20hFjcGPD6GmoKqc8fo+KgM9RTX2t/My1bXGfIGcSs= Received: (qmail 58693 invoked by alias); 19 Feb 2018 13:06:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 58612 invoked by uid 89); 19 Feb 2018 13:06:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=owing, mini, our X-HELO: 9pmail.ess.barracuda.com Date: Mon, 19 Feb 2018 13:06:25 +0000 From: "Maciej W. Rozycki" To: CC: "H.J. Lu" , Alan Modra , "Cary Coutant" Subject: [PATCH 0/2] Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818] Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 X-BESS-ID: 1519045603-298552-4258-151298-6 X-BESS-VER: 2018.2-r1802152108 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.190186 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Hi, This mini patch series addresses the issue filed as BZ #19818 where absolute (SHN_ABS) symbol are incorrectly relocated by the base address at run time, whereas their values are supposed to remain unaffected by relocation. As we have run-time symbol address calculations (often made in a slightly but insignificantly different way) scattered throughout our tree I have decided to unify all that code, hopefully making it cleaner and easier to maintain, and made it patch 1/2 in this series. Then patch 2/2 is the actual fix, which owing to 1/2 has become a one-liner. See individual change descriptions for details. Maciej