From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id 0C6B3394C03F for ; Tue, 12 May 2020 17:56:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0C6B3394C03F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=aurelien@aurel32.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=8AsQ1XudGhF2wxgRxiQGRMIWmAiUhyDU/OTnkZRh47o=; b=Byc3IRt/zHiNCkuyyTVB9V2bPL 3JuEbxnPAc+8AYvBz83shfXtrDCbrxs4siQVff0YGNSMrI8Loa42JBqo+EHlCdDNbujC/bi0ds8Aj 3jNctBv42kXnIgHq7WJjD4Ui5830eX2xn6lK119OWlaIasl0HRAxuZEYMM8gJVBT+sOvACss7EAz5 wVaLo8oOsmE7KxRppikhb/SZMEu+R91A5EhU1Fy85gx1VjQa5I5cSTibQDdXh1tHzl210G6dbZBmC NuHG7kZer8Dng9EYrBwVV+kBfZH7wpgWTSzHKVvKzz4LSs6WAFXjsfyriLPL2/tGLSFjLYbdff5px H/vcvMGA==; Received: from [2a01:e35:2fdd:a4e1:fe91:fc89:bc43:b814] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYZ8J-00028r-Ma; Tue, 12 May 2020 19:55:59 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.93) (envelope-from ) id 1jYZ8J-0010bc-2i; Tue, 12 May 2020 19:55:59 +0200 From: Aurelien Jarno To: libc-stable@sourceware.org Cc: Florian Weimer Subject: [COMMITTED 2.31] aarch64: Accept PLT calls to __getauxval within libc.so Date: Tue, 12 May 2020 19:55:39 +0200 Message-Id: <20200512175539.228580-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, 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-stable@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-stable mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 17:56:03 -0000 From: Florian Weimer When using outline atomics (-moutline-atomics, the default for ARMv8-A starting with GCC 10), libgcc contains an ELF constructor which calls __getauxval. This code is built outside of glibc, so none of its internal PLT avoidance schemes can be applied to it. This change suppresses the elf/check-localplt failure. (cherry picked from commit 16536e98e36e08bc1ce1edbd8dd50c7c3bb7a936) (cherry picked from commit 587a332b6fadc4d9f1035ecaa52ba32ee41cd300) --- sysdeps/unix/sysv/linux/aarch64/localplt.data | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/aarch64/localplt.data b/sysdeps/unix/sysv/linux/aarch64/localplt.data index a60053b9144..08af68b5e84 100644 --- a/sysdeps/unix/sysv/linux/aarch64/localplt.data +++ b/sysdeps/unix/sysv/linux/aarch64/localplt.data @@ -7,6 +7,9 @@ libc.so: malloc libc.so: memalign libc.so: realloc libm.so: matherr +# If outline atomics are used, libgcc (built outside of glibc) may +# call __getauxval using the PLT. +libc.so: __getauxval ? # The dynamic loader needs __tls_get_addr for TLS. ld.so: __tls_get_addr # The main malloc is interposed into the dynamic linker, for -- 2.26.2