From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 71937386F020 for ; Thu, 7 Jan 2021 12:56:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71937386F020 Received: by mail-oi1-x22f.google.com with SMTP id x13so7246037oic.5 for ; Thu, 07 Jan 2021 04:56:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qXr2raVakhycmv2H/2z9iIe1EE59NmgP9vdAStS7KuU=; b=mtOnBvCUE3PPn9GlIYrC7X7QgjoU7YcvetfZiDltvkSz++wxMqxwMDm9z9KEttb4lV yJkJ06ihFSVGH4Oc1xt88w5iNsoNL07bXY7EvfWv/sB7Vea/iwScPug66S6fc/3NTu02 LFJ4+1UC+y7dCpnPquDzBgEDb3cPb3YQ3VcM+cl5RNpkxVLZHcFEPGuf+ap5iPhqGVuF J9puGquidycOzxnVzZtVroLeY//1w4hm78be7PaIuGEj9eKEZ1zMM53Pf7MGp6S81w/o UXsKz3D8NaT8as1CyLDO9UZNqmmbylzHG77xpXJWE8NEBjUGvdKVbIjXmOdUi2TjCVty OFpA== X-Gm-Message-State: AOAM532dqPLLVDNrz+atZCfesoueuzsKQrWggi7DMr7jpCtZXvVXL4X1 apWurAhzCN+gLXPYapDIjjb6yUrhZIx/7uDINWc= X-Google-Smtp-Source: ABdhPJxCDO4SSEWp8MEoMZ77+w3Hbz8S7O4/9Qp9vcQycuCuyQbwVZngwuOiwbNt/d5Z05sNSJU1r4rkvZNNIPMsQG0= X-Received: by 2002:aca:f456:: with SMTP id s83mr6195966oih.58.1610024183989; Thu, 07 Jan 2021 04:56:23 -0800 (PST) MIME-Version: 1.0 References: <117ed558-3be5-a27a-1ae5-d36b63a55dfe@redhat.com> In-Reply-To: <117ed558-3be5-a27a-1ae5-d36b63a55dfe@redhat.com> From: "H.J. Lu" Date: Thu, 7 Jan 2021 04:55:48 -0800 Message-ID: Subject: Re: [PATCH 0/3] fix ifunc with static pie [BZ #27072] To: "Carlos O'Donell" Cc: Szabolcs Nagy , GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 07 Jan 2021 12:56:25 -0000 On Thu, Jan 7, 2021 at 4:50 AM Carlos O'Donell wrote: > > On 1/7/21 7:48 AM, H.J. Lu via Libc-alpha wrote: > > On Thu, Jan 7, 2021 at 3:01 AM Szabolcs Nagy via Libc-alpha > > wrote: > >> > >> on aarch64 this depends on a patch i posted earlier: > >> https://sourceware.org/pipermail/libc-alpha/2021-January/121366.html > >> > >> with that aarch64 static pie tests pass. > >> > >> i'm still working on the tunables change and thinging about > >> libc build time checks for reloc-free early startup code. > >> > >> i havent tested x86, it might need changes. > > > > Please fix the linker bug: > > > > https://sourceware.org/bugzilla/show_bug.cgi?id=13302 > > > > first before changing glibc. > > You will still need potential changes in the loader to handle > existing binaries, so the binutils fix need not come first, Linker fix may impact how glibc should be changed. > but it needs fixing. > Whatever we do in glibc, please make it target dependent and it should be NOP for x86. -- H.J.