From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140083.outbound.protection.outlook.com [40.107.14.83]) by sourceware.org (Postfix) with ESMTPS id 7612B3858C27 for ; Mon, 25 Oct 2021 13:34:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7612B3858C27 Received: from AM5PR0701CA0062.eurprd07.prod.outlook.com (2603:10a6:203:2::24) by VE1PR08MB4767.eurprd08.prod.outlook.com (2603:10a6:802:a6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Mon, 25 Oct 2021 13:34:42 +0000 Received: from AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:2:cafe::e0) by AM5PR0701CA0062.outlook.office365.com (2603:10a6:203:2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.8 via Frontend Transport; Mon, 25 Oct 2021 13:34:42 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT052.mail.protection.outlook.com (10.152.17.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Mon, 25 Oct 2021 13:34:40 +0000 Received: ("Tessian outbound f1898412aff1:v103"); Mon, 25 Oct 2021 13:34:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0efbd83c05004d2c X-CR-MTA-TID: 64aa7808 Received: from b164e48bcacb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C504A7E9-0739-47EC-88DF-B54C72F99C1E.1; Mon, 25 Oct 2021 13:34:28 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b164e48bcacb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 25 Oct 2021 13:34:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C50wfohuxrvzhh0ZcFpMoix8gX7MrWv54pedrIIu811oApl1aGo1s9QgY/L9cWcd2Bg97x4wb1XrRrhBtjelPdSt3GDwrzcor6MgoRuymXIKM88aBiOP5iMdDq5NMJ5/im8SozBtjv3Ci49F8R6rdMrFOSkT/xTKULFEVVuIg5m+QFF36QTMBu/INplsh5iwzpbQIHiuNY0Og998qhnAIAeITSJAH2ut5UBsRpaYa+l2rYzk3q0iQfPT84FeoNEl1TBovJ1WhbO8hltvgIcT3GN7KoifEK6t6MbFBP8R7lK2Ov3OIgeanOcunqQzGNo0dWug1/MWN5s2PF/RMgtfqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aPe39JvKx7laDSh1e2+lRbJ1gUeVCLmC+4QqVAyC+iE=; b=NzYpq42QojOUUBfyzpqfcR+jFBw6zg5ZnUrJPg/obABsxfyK4jSBw4IfSnX+tuYIBEME5L8h8AZwAMXgSmxJfkNoLNCNUPfsz8izZhGsdSG5rRJgRsh/MY8RyXnAYP/p19FXW1KJ3bNkEVUujM4i8zN8K5xO8PDUHkLiCW763vl5xLxqArHy9LyIBBuXtTfNoEWi+ZkO+AooDHfc0ByZhU36wRvDAKqskfgRKcQ8V/PqzvkjahB3R0/Mx/KgOuftpdRH3S+6uObGSfOVG/mj5DAO22sixCI8vjdzRC6NvC7WVfM7mzSt3Nee/EnOQjmh4/iaFFMI1K7LYjHIg3y0tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by DU2PR08MB7344.eurprd08.prod.outlook.com (2603:10a6:10:2f3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Mon, 25 Oct 2021 13:34:27 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::2900:7140:8ac4:6846]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::2900:7140:8ac4:6846%5]) with mapi id 15.20.4628.020; Mon, 25 Oct 2021 13:34:27 +0000 Date: Mon, 25 Oct 2021 14:34:25 +0100 From: Szabolcs Nagy To: Lukasz Majewski Cc: Florian Weimer , =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , "H.J. Lu" , "libc-alpha@sourceware.org" , Patches and discussions about the oe-core layer , Andreas Schwab , Joseph Myers , Carlos O'Donell Subject: Re: [PATCH v2] dl: Use "adr" assembler command to get proper load address on ARM Message-ID: <20211025133425.GN1982710@arm.com> References: <20211015075417.29931-1-lukma@denx.de> <20211015120915.GD1982710@arm.com> <20211015145831.5d0fafcd@ktm> <20211018110818.GE1982710@arm.com> <871r4iftvc.fsf@oldenburg.str.redhat.com> <20211025121819.16f63048@ktm> <878ryhwgd7.fsf@oldenburg.str.redhat.com> <20211025125307.1fa34445@ktm> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211025125307.1fa34445@ktm> X-ClientProxiedBy: LO4P123CA0316.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:197::15) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 Received: from arm.com (217.140.106.55) by LO4P123CA0316.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:197::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Mon, 25 Oct 2021 13:34:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ec473d9-d8ca-4bff-a2bc-08d997bc32ae X-MS-TrafficTypeDiagnostic: DU2PR08MB7344:|VE1PR08MB4767: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: J8QpFYn0GDQDffam8n1vz0OVZTT0skqfk+8frZbIE03KBJg8DF/aFdul1Ujl9XzODvF2JQLjR64R6GMeMIH9ufVnyBwe3dmHUOm530d521UDAkrfGvaC28L2mInt+BOn9p04udA4wJHsyBSxp9Dc2zdgppIqL69Rgv4LeTKi1BCpdRVHpdgcrRoOiOUcNtDf+zX/CF3qeMRh+ao8qA0bVtFh002rmBGIFlFL0hlOPoT60OI+QQPET8syCbk8tKmd8ylJdy1mphHx+MddeKvVvvvKXth5pZqEnBfsWTw44IAhpLnQybtol9UVz0aOTfCqprUS9ZHG58DQVO6aurgA8P4n1cwa7xNpOVANyQbEHfyG3hifqfsTGmEu+aCdeRMANuV3F0mwhIltbtU3iZ4A1tERYu+xkfVCy90A+saXD4uJy9rcTDM8fsT5TYrgPKQceRSCpC/+ELf7IAvWM2WIat3eValr1gHShbKM5ghCo5tYc/iVpw/vQ1cVyqDI2zLcvDZEqgLA4CG2ibNQAGEYGEj326vQXzj0lfaXa5VjzXCnCUvPkOa5REfEQ/JleMGrqXG7joP4dZ2E6pCPdVc5P7n4oJ33OyvCOusSqX1TLLJPpiT5iSp7Spkf5WY3cLYGOPJ9GbEGQIn7dRpobeU6kcUXCcWw83SBrrNHa12BeisNUcotTlqln19jFW6McpBJIw2N1zeKZIx+BHq7V0oPtA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB7179.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8936002)(2906002)(1076003)(36756003)(33656002)(54906003)(55016002)(66476007)(38350700002)(316002)(38100700002)(956004)(2616005)(508600001)(8676002)(4326008)(4744005)(66946007)(86362001)(186003)(5660300002)(7696005)(6916009)(52116002)(26005)(66556008)(8886007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7344 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 68c93d7a-7734-404a-95fc-08d997bc2a7e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E47n2aTo9EjmuyonUJ6DM7QHNatnMO+KV4AOvyWiFcU+YdpA1ple/A44jHPlSVvoVJMossjEg8q91MK3MWUaJ9h8i5ejV6Penn7lPZtGjjiQCjaOmDAyIIJvO1iyoT/URd1xT2pGeuzigxThawukw9vp5wcaJfKMO+E5KcSJveTtMee80hDYqTaw7AvXA4LF/iSDfhN3uOISSgGE9Va9aI9CHd5NEra6kYUCASOXPPnXUcmtXEmzOzcWXHtupaXuuDtI9fAZtT6vpNGf5e4n6ede3+fE1Vs16drl0up7Z50TX4PlyScdrFqgFFrYNXU6ZsF87U5bHd9yb+oUuTESRPtpBPll7KrgMWhSLbEOkNi5LSxytmWu8euboXo8FMFTOCm31YOEZZUR6oEgrD0/eugUSaOLAFAtMTAt37nEf1MoDf99YlvSLki+pJPcM3O5sPLL6KHM1VJb5N0oEMVxrCBk2IAQHdPhsoutRS9+7dIYq81vx1pWmZ2DmVDON942Mai57xqcaGJbi6SEZXzP0FETCY9BOp+Yb2KobATeTuWpVwWlGhkMMqeV+yvYwVtYUKXZUP43zmdw2sHabUhw+kz5MJ775LTnxqvBEB238RMPINrHVP8xqX8WCdAlygd782ixp7VvU3zdC/qG1Eb2IP0g0p4t4mbOsowDDNgA2KmABCFktHpMxFtG6OPqrMFkv9PwU5WD9fTdIbFjBkQ06w== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(36756003)(81166007)(7696005)(63350400001)(186003)(4744005)(63370400001)(356005)(33656002)(8676002)(70206006)(86362001)(8936002)(2906002)(5660300002)(956004)(336012)(1076003)(4326008)(8886007)(107886003)(54906003)(55016002)(36860700001)(6862004)(316002)(82310400003)(47076005)(26005)(70586007)(2616005)(508600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2021 13:34:40.8917 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ec473d9-d8ca-4bff-a2bc-08d997bc32ae X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4767 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY 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: Mon, 25 Oct 2021 13:34:48 -0000 The 10/25/2021 12:53, Lukasz Majewski wrote: > Hi Florian, > > > * Lukasz Majewski: > > > > > Do we have any idea on how to move forward with this issue? > > > > Either fix the prelink tool not to prelink shared objects that do not > > have a dependency on libc.so.6, or fix the dynamic loader to work if > > prelinked on AArch64. > > Just for the correctness - both 64 and 32 bit ARMs are affected. last time i looked, prelinking did not support tlsdesc correctly so it is unusable for aarch64. does yocto/oe use prelinking on aarch64? > > > I do not have a strong opinion. > > Thanks for your opinion. Let's wait for other community members > opinions. i think fixing the arm load address computation makes sense (small extra cost of a relative reloc). i think the c code proposal i made in the thread is nicer than the old asm. (i'm happy to make the same change on aarch64 too if prelinking is used there, but i think that's broken.)