From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103089 invoked by alias); 4 Nov 2016 19:25:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 102977 invoked by uid 89); 4 Nov 2016 19:25:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=U*fweimer, sk:fweimer, fweimer@redhat.com, fweimerredhatcom X-HELO: mail-qk0-f193.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qTfhBLuRgoD4U8TU1/557IsibwbXU9/GtlADOrMV72w=; b=KZ3P8MQu+xWl5V20vg69IzqE1Aq81hlDKgQxWVgqHncWl7wgfDyyXyTurC+GNvMWOB BgElyEKld5XxlaxiMJck5rQ5zJkjp5I1CvnXhhGHFprPXAKgkl6vls00mbKaKL2sLUf1 wekPXtHRH9h3+lMfs7t60C2qL3AM/eLqESw/MoIGAVJe+IrFfOCrafAQhvfgHEFputDg +vdwTJWWkSuBPsyqJbZrSQG1WaZcBjl2edXuS/iJ0Nula33xMD8huTMeE9VMFjT+67K4 HRBRSxXgElQVo8vmvwlF9/ASCBNOHDbkbP5Rd214uHsig/Y4ru5ovhMpT5ElocF+FVXB iHfw== X-Gm-Message-State: ABUngvdn11XdUEu2u69VPwVkRWJXsKYp0pDrmaXdztB+00gB6z/lmEXtHPuPHRIuKvkHlrDw+FZu6bswieYwAA== X-Received: by 10.55.169.202 with SMTP id s193mr16567881qke.231.1478287512745; Fri, 04 Nov 2016 12:25:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20161104174739.GA5880@intel.com> From: "H.J. Lu" Date: Fri, 04 Nov 2016 19:25:00 -0000 Message-ID: Subject: Re: [PATCH] Don't use PLT nor GOT in libc.a [BZ #20750] To: Florian Weimer Cc: GNU C Library Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-11/txt/msg00199.txt.bz2 On Fri, Nov 4, 2016 at 12:03 PM, Florian Weimer wrote: > On 11/04/2016 06:47 PM, H.J. Lu wrote: >> >> There is no need to use PLT nor GOT in libc.a to branch to a function, >> regardless whether libc.a is compiled with PIC or not. >> >> Tested on x86-64. OK for master? > > > Isn't this header file used outside of libc as well? It is used for other .a files. If they aren't used to create static binaries, PLT/GOT may be used. The resulting executable will work correctly. > (And the commit message should mention that this change is specific to > x86_64.) > I will update it. -- H.J.