Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp359141ybz; Wed, 29 Apr 2020 01:20:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKENWW68G5CV886DLY1Zak+V1BY8Azco34WprmAKYFQbM+o3XtvoYKHfjk/mkZ6+spgYD/l X-Received: by 2002:a17:906:855a:: with SMTP id h26mr1591204ejy.56.1588148441884; Wed, 29 Apr 2020 01:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588148441; cv=none; d=google.com; s=arc-20160816; b=jINnQJUXJ3Vc21+nTIRewjNkX/w5vEpH6CNFdfPj9xzvdDttjEAxMq+csUXTXJgv4c 35fqN0idKmGMoriOG9T9/tgpW6PE06+T7PxxM+3hQGslUJCF5YWcNWSVOIfZPwxnhDPA MGDNuQmIszosOeFj/q9LO4ukofLwov3FrJG03JEMxzR242RQM8Td6OVFZDnsBFM4G3bV MMpnPPutXCpNgt9Idp3GYURbt6ve6d4wcic4fYZVKk/V5eeaFiiNoM/W7Lr5jhJDmPXM pVphEok6oZkRALRESrMmozmt07Zn854yTYgH05EXQPtbO0xiT8NRybzbaU+yePt9zHVL aoYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=J1PcbE0uu28gE4kcB8Dfs7V/OgO7hyCG9PQDtaJ4XLU=; b=kNqWPikqh6u0QlErGaZdIudxb7HcmHM1hUDUgxwRLzO2zArLjh9ORlcYoceXk28nLl IoT2sQtGlrxvhatfWtDnJXVDzasc5bxkrxW0Gnag5WteIdsDRdz3/L3eQIsKoqJPvFZL 0pS/e65cX71YKXhP41FhdgW+/MikoK86X/gITe2sqg1umLjcsa63JCRFuxEoqKiFCFAs sgYV2zpbGf0hXEL8XBFocWY04RPyhew+jihcngINblHTviBSj4wT0saC/m+35TwvFFm4 meJcxydwM1IOZf3+2qfM15hsLSJUAn5eFJHdZDcgOb4OiPOfInvlU9jMyoswRBpCFqHS ltVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si3346594edl.247.2020.04.29.01.20.18; Wed, 29 Apr 2020 01:20:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbgD2IST (ORCPT + 99 others); Wed, 29 Apr 2020 04:18:19 -0400 Received: from albireo.enyo.de ([37.24.231.21]:55198 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgD2IST (ORCPT ); Wed, 29 Apr 2020 04:18:19 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jThuy-0004qC-GE; Wed, 29 Apr 2020 08:18:08 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jThuy-0004kT-E2; Wed, 29 Apr 2020 10:18:08 +0200 From: Florian Weimer To: Szabolcs Nagy Cc: Mathieu Desnoyers , Michael Kerrisk , libc-alpha , carlos , Rich Felker , linux-api , Boqun Feng , Will Deacon , linux-kernel , Peter Zijlstra , Ben Maurer , Dave Watson , Thomas Gleixner , Paul , Paul Turner , Joseph Myers Subject: Re: [PATCH glibc 5/9] glibc: Perform rseq(2) registration at C startup and thread creation (v17) References: <20200326155633.18236-1-mathieu.desnoyers@efficios.com> <87zhawvphv.fsf@mid.deneb.enyo.de> <2102127737.70791.1588008377292.JavaMail.zimbra@efficios.com> <87ftcnrf7d.fsf@mid.deneb.enyo.de> <1080028389.72414.1588077193438.JavaMail.zimbra@efficios.com> <878sifrdo0.fsf@mid.deneb.enyo.de> <190402462.72430.1588077816717.JavaMail.zimbra@efficios.com> <87tv13py8j.fsf@mid.deneb.enyo.de> <437249723.72685.1588085899422.JavaMail.zimbra@efficios.com> <20200429081606.GP29015@arm.com> Date: Wed, 29 Apr 2020 10:18:08 +0200 In-Reply-To: <20200429081606.GP29015@arm.com> (Szabolcs Nagy's message of "Wed, 29 Apr 2020 09:16:09 +0100") Message-ID: <87a72ug0xr.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Szabolcs Nagy: > The 04/28/2020 10:58, Mathieu Desnoyers wrote: >> ----- On Apr 28, 2020, at 8:54 AM, Florian Weimer fw@deneb.enyo.de wrote: >> > That one definitely should work. >> > >> > I expect you might see this if libgcc_s.so.1 is installed into a >> > multiarch subdirectory that upstream glibc does not search. (The >> > Debian patches are unfortunately not upstream.) >> >> My test environment is a Ubuntu 18.04.1 LTS. >> >> > >> > I think on my system, the built glibc can find the system libgcc_s via >> > /etc/ld.so.cache, so I haven't seen this issue yet. >> >> On my system, libgcc_s is provided here: >> >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> >> by this package: >> >> Package: libgcc1 >> Architecture: amd64 >> Version: 1:8.4.0-1ubuntu1~18.04 > > before running the tests > > cp `$CC --print-file-name libgcc_s.so.1` glibc/build/dir > cp `$CC --print-file-name libstdc++.so.6` glibc/build/dir > > so those toolchain libs are in the search path > of the newly built libc when running tests. Do you actually see the need for these steps yourself? I guess the correct fix would be to upstream the Debian multiarch changes and activate them automatically with a configure check on systems that use multiarch paths.