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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,URIBL_BLACK shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 E4D301F8C6 for ; Tue, 24 Aug 2021 17:05:45 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E8362385841E for ; Tue, 24 Aug 2021 17:05:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8362385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629824744; bh=gWv8IRLKDa1xyxSNhA++T48qtJ3LhPqKvouC7LVR5G4=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gVUYeMcPYi7y3KwRwJ0+Pz9LKVwIjEy5sCvKyZSGQPxDjO1YFaGvXvismAmvMZGAk xn2G/fQIUfRNUhSDvhNUaG7hOehy55I7/dewJYeJbCpB1/X0cBALLgu7QTZrIDt2pu +KRglE8Wg0KujR15Imllb4WQPvf/MPV1NXRdEdlM= Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 7E68A3858404 for ; Tue, 24 Aug 2021 17:05:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7E68A3858404 Received: by mail-yb1-xb32.google.com with SMTP id z18so42376031ybg.8 for ; Tue, 24 Aug 2021 10:05:16 -0700 (PDT) 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:content-transfer-encoding; bh=gWv8IRLKDa1xyxSNhA++T48qtJ3LhPqKvouC7LVR5G4=; b=Ddns4x6klhRC3SUakk8+l1AQwwrAwOdDJWYhUpnRzTYRtYs28ZO+XqRAkkWm2IoNFl 42gn4UYo7omTEi+FZQestFpq9qsXW06H18aEHRGxSebG34h3C/QqZ9Lwdh/4b++y7AUQ evvqmop/UB7b3tu4ovvR9sQMmiRHgsc4uQMxa5wbl060oASCu/fopTD6vYuYH1dLyFKW 74JheZIB2ySu+5HIMcaBxpG1oqBqdMEBa9pcGZYkOICm6+Rll1qunpAiAkvdF9bVEUpp 4PD4qzWx5Y+OekRQWUEthQf0NusuFHZnwlanSQm6LNKPSbPeEY9Yvo1VQsI+OHG1UK7P lDzA== X-Gm-Message-State: AOAM532x3VqaT+yIVI+K0AzYqwv8Rop/9ThU2VNLrk5jbroDfTzIMFry 0A3n8of/ALbh6Wyr2tzQfycE4AFzq5WEc34WRKnNrBsbdXs= X-Google-Smtp-Source: ABdhPJzQxwBB0sJqbOWvV/lKNsxlsNJeNFdz86aePZaH6fdR3uJ2vGWNt+JRDLr3IA+tMptaeNFel3MLAsazD/msBjk= X-Received: by 2002:a25:42c4:: with SMTP id p187mr20459430yba.484.1629824715626; Tue, 24 Aug 2021 10:05:15 -0700 (PDT) MIME-Version: 1.0 References: <20210805162601.1200851-1-maskray@google.com> <20210805162601.1200851-4-maskray@google.com> <20210810221915.g6ipyceykaio3324@google.com> In-Reply-To: Date: Tue, 24 Aug 2021 10:05:04 -0700 Message-ID: Subject: Re: [PATCH v2 3/3] configure: Allow LD to be LLD 13.0.0 or above [BZ #26558] To: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: , From: =?utf-8?q?F=C4=81ng-ru=C3=AC_S=C3=B2ng_via_Libc-alpha?= Reply-To: =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Sun, Aug 22, 2021 at 8:18 PM F=C4=81ng-ru=C3=AC S=C3=B2ng wrote: > > On Tue, Aug 10, 2021 at 3:19 PM Fangrui Song wrote: > > > > On 2021-08-05, Fangrui Song wrote: > > >When using LLD (LLVM linker) as the linker, configure prints a confusi= ng > > >message. > > > > > > *** These critical programs are missing or too old: GNU ld > > > > > >LLD>=3D13.0.0 can build glibc --enable-static-pie. (8.0.0 needs one > > >workaround for -Wl,-defsym=3D_begin=3D0. 9.0.0 works with > > >--disable-static-pie). > > > > > >With BZ #28153 (glibc bug exposed by testing with LLD) fixed, > > >`make check` only has 2 more failures with LLD than with GNU ld: > > >BZ #28154 (LLD follows the PowerPC port of GNU ld for ifunc by > > >placing IRELATIVE relocations in .rela.dyn). > > >The set of dynamic symbols is the same with GNU ld and LLD, > > >modulo unused SHN_ABS version node symbols. > > > > > >For comparison, gold does not support --enable-static-pie > > >yet (--no-dynamic-linker is unsupported BZ #22221), yet > > >has 6 failures more than LLD. gold linked libc.so has > > >larger .dynsym differences with GNU ld and LLD > > >(ISTM non-default version symbols are changed to default versions > > >by a version script). > > > > > >--- > > > > > >I identified the lack of support of > > > > > >* version script on non-default version symbols > > >* copy relocations on non-default version symbols > > > > > >in an earlier snapshot of LLD 13.0.0 and fixed them. > > >The functionality of the LLD linked libc.so and ld.so looks pretty goo= d. > > >--- > > > configure | 77 +++++++++++++++++++++++++++++++++++++++++++++++++--= - > > > configure.ac | 20 ++++++++++---- > > > 2 files changed, 88 insertions(+), 9 deletions(-) > > > > Ping:) > > > > (The code/test hasn't been changed since v1. > > v2 just added BZ numbers.) > > > > x86-64 only 2 more ifunc FAIL which tickle some weak point of ifunc imp= lementation. > > > > aarch64 `make-check` is fully on par with GNU ld. > > (https://sourceware.org/pipermail/libc-alpha/2021-August/130040.html= ) > > Ping^2 > > ("elf: Replace .tls_common with .tbss definition [BZ #28152]" has been > subsumed into a tls-macros.h removal patch.) This is now the only needed commit. aarch64 and ppc64le look on par. x86-64 just has 2 more FAIL due to ld.so's intrinsic lack of ifunc robustne= ss.