From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 6A44A385842B; Fri, 9 Feb 2024 17:32:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A44A385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499940; bh=htwTE36nPqJc8+U52DCVs32tS8TRuGmKC0Bc6ydPc9s=; h=From:To:Subject:Date:From; b=WSpQ2dGIVIfd0cKZvrZb/srk1Vfabmm1BC6kwdcJ8gpCsZOkQKJ6wJ2s4kClDdyeQ E6HHSNbJWnm7ElecQIkchEMRziuuAEFThfwlz4bwQQrMgGOvxgsfnBR1R6NVAjIxyC +oTp9kwfQ2jFF3Q0L2jx3d76tJUEmImtGJNU61pg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] i386: Move ___tls_get_addr hidden proto before its first usage X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 0c16775b5cedca6205a28148fa6f2a111ae499c6 X-Git-Newrev: 31692eb3d7c6b0e9bf5044afeee4440ecb00cf18 Message-Id: <20240209173220.6A44A385842B@sourceware.org> Date: Fri, 9 Feb 2024 17:32:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=31692eb3d7c6b0e9bf5044afeee4440ecb00cf18 commit 31692eb3d7c6b0e9bf5044afeee4440ecb00cf18 Author: Adhemerval Zanella Date: Tue Jul 26 08:41:10 2022 -0300 i386: Move ___tls_get_addr hidden proto before its first usage clang can not apply asm redirections to functions after these functions are used for the first time. Diff: --- sysdeps/i386/dl-tls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/i386/dl-tls.h b/sysdeps/i386/dl-tls.h index f17286703d..f7a90d5fbf 100644 --- a/sysdeps/i386/dl-tls.h +++ b/sysdeps/i386/dl-tls.h @@ -31,6 +31,8 @@ extern void *___tls_get_addr (tls_index *ti) __attribute__ ((__regparm__ (1))); extern void *___tls_get_addr_internal (tls_index *ti) __attribute__ ((__regparm__ (1))) attribute_hidden; +rtld_hidden_proto (___tls_get_addr) +rtld_hidden_def (___tls_get_addr) # if IS_IN (rtld) /* The special thing about the x86 TLS ABI is that we have two @@ -50,8 +52,6 @@ __tls_get_addr (tls_index *ti) version of this file. */ # define __tls_get_addr __attribute__ ((__regparm__ (1))) ___tls_get_addr strong_alias (___tls_get_addr, ___tls_get_addr_internal) -rtld_hidden_proto (___tls_get_addr) -rtld_hidden_def (___tls_get_addr) #else /* Users should get the better interface. */