From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00062.outbound.protection.outlook.com [40.107.0.62]) by sourceware.org (Postfix) with ESMTPS id 0C7D9385780B for ; Thu, 8 Oct 2020 10:13:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0C7D9385780B Received: from DB6PR07CA0073.eurprd07.prod.outlook.com (2603:10a6:6:2b::11) by AM0PR08MB3924.eurprd08.prod.outlook.com (2603:10a6:208:131::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.37; Thu, 8 Oct 2020 10:13:20 +0000 Received: from DB5EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2b:cafe::e2) by DB6PR07CA0073.outlook.office365.com (2603:10a6:6:2b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.11 via Frontend Transport; Thu, 8 Oct 2020 10:13:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT055.mail.protection.outlook.com (10.152.21.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23 via Frontend Transport; Thu, 8 Oct 2020 10:13:19 +0000 Received: ("Tessian outbound 7a6fb63c1e64:v64"); Thu, 08 Oct 2020 10:13:19 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ba21c0c7cceaa881 X-CR-MTA-TID: 64aa7808 Received: from f32d27ec60a1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EDB67CE3-F217-4205-9752-C463D79310CB.1; Thu, 08 Oct 2020 10:13:10 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f32d27ec60a1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 08 Oct 2020 10:13:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UEK6KYF69KUmpMR0KIMkMpg1P29JWydOHWVwn4MlUAyYvCtTzssMmWiaKH55YJS6Dh2oEMMCPRkEIbbfbrks/ORV4JvIaGS2h5yRYMxv/gqAnAICOABbZyPcXnm/bkM+GuCcRpcIJhnWVAqUio2Fm6zM8zN8ToMSodAOvdW17waPfMsXuHFvcx0HYtTyJtwx04jF/epX3I0vS5NV9q+9CNI4G6i1VufzsjV2/tjvvpEkEm+J0RBsg2kVg2qLsqi5yPh0Wv3i3EvfEbPGYFV5RRVZV4DX3czYGExosit/f/azcz2MLDBM2yzpBnqBTxzI97YPd1ns8S8zk0az1y4uVA== 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-SenderADCheck; bh=0PrVaB9lggam1U5dtlarQAhIdYXp+PvZywbALQP9l+g=; b=bigwe99/6CHH/bG19jm6jQ8Nxmmim74KOmC7qYd9KXaPMvWSODHumO2Z+ydBpJCW2sGdaoIpivCPTgPgsRxPCknAPt9EblZhnixbgNMV6bWxGkhi8OWTUN7eAUkrYumuFzwbXkQZvaHuQ3q5zU/EPEiP7XV2yVy4CsBPYhe1LokbxA5478xQJfMtqgS5rxzhEpwor3Rb8mx7TC7LRproZgugXFgVUFzH/Q4kJ0Mnc0+W4+Y4OBGTOJNDuX3NPYE2VvSVs2o7WgGYM4xXu3Vqrkw+zmsFKZDno2fJb+ec6CTOr1FUJbmqOOrJe1E4AGGZ/GqwRjUvRzzTsyg7nlWnKA== 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: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; Received: from PR3PR08MB5564.eurprd08.prod.outlook.com (2603:10a6:102:87::18) by PA4PR08MB6287.eurprd08.prod.outlook.com (2603:10a6:102:ef::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Thu, 8 Oct 2020 10:13:08 +0000 Received: from PR3PR08MB5564.eurprd08.prod.outlook.com ([fe80::957e:c80e:98f4:23d6]) by PR3PR08MB5564.eurprd08.prod.outlook.com ([fe80::957e:c80e:98f4:23d6%6]) with mapi id 15.20.3455.023; Thu, 8 Oct 2020 10:13:08 +0000 Date: Thu, 8 Oct 2020 11:13:06 +0100 From: Szabolcs Nagy To: Florian Weimer Cc: libc-alpha@sourceware.org Subject: Re: [PATCH 16/28] elf: Add glibc-hwcaps support for LD_LIBRARY_PATH Message-ID: <20201008101305.GP29000@arm.com> References: <47cb6998ed91f70f122de115b2e03ea5e82e5884.1601569371.git.fweimer@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <47cb6998ed91f70f122de115b2e03ea5e82e5884.1601569371.git.fweimer@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [217.140.106.54] X-ClientProxiedBy: LO2P123CA0093.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::8) To PR3PR08MB5564.eurprd08.prod.outlook.com (2603:10a6:102:87::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.54) by LO2P123CA0093.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23 via Frontend Transport; Thu, 8 Oct 2020 10:13:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9455764a-136c-4f70-69cf-08d86b72c7e7 X-MS-TrafficTypeDiagnostic: PA4PR08MB6287:|AM0PR08MB3924: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: vwF1VPvxjSlNvCzFLYkW/oERXu+NUWArc2R0Ft4q9E7n6dDQ24ZTCgLVK54GpjUF/QoDL0R6z3LN/nqtFHbNQ0NmVZG1n+04g4lSghXqbwZAqALS37bS0X7YGMvvV4DhTMmmtSN9m3NaOdc+LelEh523iwWbwQSHPt96JsTpWK8zjWmgL0rZ44UYY2K0M6MuPmfl6Fxm1kvNsnx4PlCIo+7eyqiYoPBsjvDXWDsXkyHOLICeqwS/3yDPDat/kMQSuGCuVSvZI1RGZfoY9cPh13t8DtJj6ruSDRn2CXhNvgbWjodK6Kot6vYPn83wU2jL X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR08MB5564.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(366004)(136003)(396003)(39860400002)(1076003)(956004)(4744005)(52116002)(7696005)(8936002)(55016002)(316002)(44832011)(2616005)(4326008)(478600001)(6916009)(26005)(2906002)(16526019)(86362001)(186003)(8886007)(8676002)(33656002)(66946007)(5660300002)(36756003)(66476007)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: OQVhDeUIur6xNKGIRhl6vRxr04LXyd4+dc51gEHEDYdB0BBcC9OHcldJP60l0fu/NXh55nc1L8gkKnzW9sjDKjoG11p6Fl9MrtwwCtDk+7mmcdzO7MMoWGmY5VUxDpa/LsKE28H7XlsiFOdvtky/G980t3GBin0lXJIGW0n74M6Bz0Jtot01RFehF1y24PpdUpRI7Dyw6/VRqOQYmjppZx3weNtekHpceZdgULse0VIZvxlSxFTnVQI6fut4y6WEEab8uqbEHEwsWJsUEo5hfuxPpsJRD7NnoGhzID2fjWYSx/sjhBLD3OjaFYRS+4BlGqcbxAAtmOFd+xLlGThTa96RTP5semmAqrUAwUNCvIusqFbmT0Sgs/06rYOrwyxHfLGUVIk51ioiBdB7nM7s7eSFfzE03pYqxFXwWliHrG6Mb+oG3Mc1iu5yeDvfcb9SwGrcxAxfQkYM9cl+Cs6UCPjwxxdVO/Po8ukKM/gcUrVw8ozwS4ADvnMQN50kSKvDFvV8DgB2TPl6YrbUNlaFbK/eE9yWW+yECoY2wzxEtZ9ugZ29bBoO52iOnL1A4njpUxr5titd0j6P2qfH/cagze8w1b0598/ACX20mn0vi237CX8gCO5bECHWi2xkVubq1f07U3CXeHpUDFvv8qP6+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6287 Original-Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 0709a3ed-d889-4bac-49d6-08d86b72c0f6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sAva3gXUwsEoI4496iga/2zqcVshFBpzVNRXdhFcnMlWCG82FzQFElHkXy65iQw9nfBePXGJu2/tcnEZ3Nhne2n4i4N6o61P9DF0spG1x+KqNQXvVpQZTp+oe1qo5nhIwDl5qI8t63wnPWuqMoPGPg5TwodvfhXhaviz5TSDGj5k3bBL9wBrSWbYRP63Q8pJ5uWeV+FTgl+JSMsD6uTQQ7vaSKCuKaeWwnwvObsi/YIE4BmLi7+QaD8PAcdFnIqRv3OpxKE6BeaBD/zTPWu4ptZy3+VSI5uPcmnO5Ep++6KCXR8oOVrJOxob5tmPtSCxwKQY7DLhnPGbio3EX10Y69B9v7qZEnnrxpCImhGTihYwELMxRUvitqVcBd4XuloDITOiMnL1hiMllYTCjfpVfQ== 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)(396003)(376002)(136003)(346002)(39860400002)(46966005)(8886007)(47076004)(44832011)(70586007)(2616005)(336012)(478600001)(5660300002)(356005)(316002)(1076003)(6862004)(4326008)(81166007)(36756003)(2906002)(186003)(7696005)(956004)(70206006)(8936002)(16526019)(26005)(55016002)(33656002)(8676002)(4744005)(82740400003)(82310400003)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2020 10:13:19.7130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9455764a-136c-4f70-69cf-08d86b72c7e7 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: DB5EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3924 X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY 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-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: Thu, 08 Oct 2020 10:13:23 -0000 The 10/01/2020 18:33, Florian Weimer via Libc-alpha wrote: > This hacks non-power-set processing into _dl_important_hwcaps. > Once the legacy hwcaps handling goes away, the subdirectory > handling needs to be reworked, but it is premature to do this > while both approaches are still supported. ... > +/* Returns a bitmap of active subdirectories in _dl_hwcaps_subdirs. > + Bit 0 (the LSB) corresponds to the first substring in > + _dl_hwcaps_subdirs, bit 1 to the second substring, and so on. > + There is no direct correspondence between HWCAP bitmasks and this > + bitmask. */ > +int32_t _dl_hwcaps_subdirs_active (void) attribute_hidden; if this returns a bitmask i would use uint32_t to avoid overflowing shifts and have 32bits available.