From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id DFCBA385842E for ; Fri, 8 Apr 2022 22:28:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFCBA385842E Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 238ImLSd022921 for ; Fri, 8 Apr 2022 22:28:39 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3faeu9tp5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 08 Apr 2022 22:28:38 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 238MMPMg028390 for ; Fri, 8 Apr 2022 22:28:38 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com with ESMTP id 3faeu9tp5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Apr 2022 22:28:38 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 238M7VPd023073; Fri, 8 Apr 2022 22:28:37 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma04wdc.us.ibm.com with ESMTP id 3f6e4ah6m9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Apr 2022 22:28:37 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 238MSaRV19267846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Apr 2022 22:28:36 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B625AAE06F; Fri, 8 Apr 2022 22:28:36 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 660F3AE05F; Fri, 8 Apr 2022 22:28:36 +0000 (GMT) Received: from linux.ibm.com (unknown [9.65.88.206]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 8 Apr 2022 22:28:36 +0000 (GMT) From: Tulio Magno Quites Machado Filho To: libc-alpha@sourceware.org Cc: Alan Modra Subject: Re: [PATCH v2 2/4] powerpc64: Set up thread register for _dl_relocate_static_pie In-Reply-To: <20220228064052.3413334-3-amodra@gmail.com> References: <20220228064052.3413334-1-amodra@gmail.com> <20220228064052.3413334-3-amodra@gmail.com> User-Agent: Notmuch/0.35 (http://notmuchmail.org) Emacs/27.2 (x86_64-redhat-linux-gnu) Date: Fri, 08 Apr 2022 19:28:35 -0300 Message-ID: <8735in2orw.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: eqOBTXuU5-sfOIUXGRDrkgDMHCW42S4d X-Proofpoint-ORIG-GUID: Hu3UCKpV6diELaOqBvVMZ6GXpLrqT5Ke X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-08_08,2022-04-08_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=936 spamscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 clxscore=1015 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204080113 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 08 Apr 2022 22:28:41 -0000 Alan Modra via Libc-alpha writes: > libgcc ifunc resolvers that access hwcap via a field in the tcb can't > be called until the thread pointer is set up. Other ifunc resolvers > might need access to at_platform. This patch sets up a fake thread > pointer early to a copy of tcbhead_t. hwcapinfo.c already had local > variables for hwcap and at_platform, replace them with an entire > tcbhead_t. It's not that large and this way we easily ensure hwcap > and at_platform are at the same relative offsets as they are in the > real thread block. > > The patch also conditionally disables part of tst-tlsifunc-static, > "bar address read from IFUNC resolver is incorrect". We can't get a > proper address for a thread variable before glibc initialises tls. Reviewed-by: Tulio Magno Quites Machado Filho -- Tulio Magno