From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1CCE31F8C6 for ; Wed, 14 Jul 2021 02:15:30 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 10E58394AC15 for ; Wed, 14 Jul 2021 02:15:29 +0000 (GMT) Received: from dog.elm.relay.mailchannels.net (dog.elm.relay.mailchannels.net [23.83.212.48]) by sourceware.org (Postfix) with ESMTPS id 2E7603858018 for ; Wed, 14 Jul 2021 02:15:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2E7603858018 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6898A7E076F; Wed, 14 Jul 2021 02:15:14 +0000 (UTC) Received: from pdx1-sub0-mail-a5.g.dreamhost.com (100-96-16-89.trex.outbound.svc.cluster.local [100.96.16.89]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A8F987E0ABC; Wed, 14 Jul 2021 02:15:10 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a5.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.89 (trex/6.3.3); Wed, 14 Jul 2021 02:15:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Shade-Exultant: 0c3511f826eb4dc4_1626228911058_4165288200 X-MC-Loop-Signature: 1626228911058:2556380037 X-MC-Ingress-Time: 1626228911057 Received: from pdx1-sub0-mail-a5.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTP id 3A6808B02B; Tue, 13 Jul 2021 19:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gotplt.org; h=subject:to :cc:references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=gotplt.org; bh=Efa+u8 0svYYSSeisS54RJ5XrlQc=; b=Fyf+041gVdL1rWi1PALUFexp7u25g0Vw6B3gH1 16DvCJNJbRj1aJ0M38bCyYD9M8tU+6c0OXZU0IkRiJBVot5QYRwoGL8w41fySl2+ kdN5q0oPLqjrlcPwYt09fpu6q4Gt+b14cxefeXxD3BxFKwieNbIpEe1HJPdjYFHZ Wrays= Received: from [192.168.1.139] (unknown [1.186.101.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTPSA id EB4918AC84; Tue, 13 Jul 2021 19:15:06 -0700 (PDT) Subject: Re: [PATCH] csu: Skip ARCH_SETUP_IREL if _dl_relocate_static_pie applied IRELATIVE relocations [BZ #27164] To: Fangrui Song References: <20210708221032.955550-1-maskray@google.com> <8b8fb5c9-ce4e-b10e-95b1-0281f96894c0@redhat.com> <20210713080646.3n3ycmh3p4d7ul3t@google.com> <11b630ce-8d50-ee07-37e9-b5fec16a6f18@gotplt.org> <20210713230639.mkyiijn6v7tlo7fc@google.com> X-DH-BACKEND: pdx1-sub0-mail-a5 From: Siddhesh Poyarekar Message-ID: Date: Wed, 14 Jul 2021 07:45:00 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210713230639.mkyiijn6v7tlo7fc@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On 7/14/21 4:36 AM, Fangrui Song wrote: > Please see the sentence from the first message > "In addition, this enables a future simplification to GNU ld: we can > drop a linker script difference between -no-pie and -pie." > > This is the only difference other than image base difference. I did see the first message and indeed, all messages in the thread before asking that question. Perhaps my wording wasn't specific enough: what is the benefit to *users* of having those symbols in dynamic binaries? If the only reason what you mentioned in your first email, then this patch proposes to add runtime overhead to make what is essentially a cosmetic difference to GNU ld. That doesn't make sense. In that context, lld behaviour needs to be changed since it adds symbols specifically meant to enable ifunc resolution in non-pie static binaries to all generated binaries without any known benefit to end user applications. Siddhesh