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 F18EA1F8C6 for ; Mon, 30 Aug 2021 19:52:56 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4EA78385843D for ; Mon, 30 Aug 2021 19:52:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EA78385843D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1630353175; bh=hVE2aza5rhXLA1pi2A1RLOaefkAQ0nZYqiTVAHNgEbU=; 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=d19YV/JMF6VLTQrczUS4DAKoxBN09TPc3MMM1oXlcceyp/TSrlyrEwDFh2VxYULR4 1a/BLfNOFeb8nIgwErkn1GmM6ypwC3SwHCN+dW0QOyiEz/IGKzER/maBRMH+epVX52 R5/vSYC2zmP3kvQy0mE/XZMwRtFdrDOczapKR7Kw= Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by sourceware.org (Postfix) with ESMTPS id 280A93858D34 for ; Mon, 30 Aug 2021 19:52:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 280A93858D34 Received: by mail-yb1-xb33.google.com with SMTP id k65so30404975yba.13 for ; Mon, 30 Aug 2021 12:52:27 -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=hVE2aza5rhXLA1pi2A1RLOaefkAQ0nZYqiTVAHNgEbU=; b=lciyVSJYerTJDGiEPrmJlqQNJJmXkMWsxXOutPIX6hc+xdfarNImsIWmP+6ANBKDk+ M3aeWjINpwNNJS0n8RFzYIJm4s0bjcWJ7cnQWGpuoWiFBmVEuFPscOTGj6KJ2UTfABh+ zEFijsh/PbSQcvJZOC8fsJ0Cvkm8IqTMYzeghbD1uv3W7aeVl2Im5fqMQeqDB1MZ8f9z YZ5EAUyo5fg6dWRfYDiZxp439IzHXK3ztqvkE76rGkFXlqntqw8sUJq+q7jk3nt9W7dy SSGZZUn0FxomW/EMfs2VAgz4b47j9UiaPQLPPUwEQ2idnPx4t2w99bLCmgBIENH9YD6P HDJQ== X-Gm-Message-State: AOAM5315utX7cSZdRxL9Yn0a81Mh2AGbg3C4LVXTvIeQKUK8HfExO+ze irr+ParmQ3V8K0ao8Vksi7zSXWEFlqgzXWEFSCoCTvY5DBk= X-Google-Smtp-Source: ABdhPJxD2IF56ALqYNFc+lNyYmtbb8TbZw0kZB7b9AbwHqIHVKb4rAUKywoOUagmoqXbB9KSverbnxrLpSvAL2UVuI8= X-Received: by 2002:a25:6cc1:: with SMTP id h184mr24576997ybc.240.1630353146246; Mon, 30 Aug 2021 12:52:26 -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: Mon, 30 Aug 2021 12:52:15 -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 Tue, Aug 24, 2021 at 10:05 AM F=C4=81ng-ru=C3=AC S=C3=B2ng wrote: > > 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 confu= sing > > > >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 g= ood. > > > >--- > > > > 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 i= mplementation. > > > > > > aarch64 `make-check` is fully on par with GNU ld. > > > (https://sourceware.org/pipermail/libc-alpha/2021-August/130040.ht= ml) > > > > 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 robust= ness. Ping^4. I'll push if nobody objects.