From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2045.outbound.protection.outlook.com [40.107.20.45]) by sourceware.org (Postfix) with ESMTPS id DBF1D3858D1E for ; Wed, 4 Jan 2023 11:09:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBF1D3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pPIYJuBsaMx+aNSP80tAYpmofFKxu/Z1SXOMmWQcL2U=; b=L+/tSWFdoelLh83kshB3CyRO3ahp65WEjVFXk/aaEAQsbSfNosoU+Y7cuboT7JRL2eZsneU9MD2R/Xj5jwaPyuJaPyNZOyVRPX+iO13Ae4O+rTLp1Bn9T1xZNlYwDtxc0O+3QIubcj8j8dDwFLv5/X+dCSdKliMVFzYd8ZSxQfU= Received: from AM6P193CA0130.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::35) by DBAPR08MB5784.eurprd08.prod.outlook.com (2603:10a6:10:1a6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.9; Wed, 4 Jan 2023 11:09:09 +0000 Received: from AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:85:cafe::38) by AM6P193CA0130.outlook.office365.com (2603:10a6:209:85::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.20 via Frontend Transport; Wed, 4 Jan 2023 11:09:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT034.mail.protection.outlook.com (100.127.140.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.14 via Frontend Transport; Wed, 4 Jan 2023 11:09:09 +0000 Received: ("Tessian outbound 0d7b2ab0f13d:v132"); Wed, 04 Jan 2023 11:09:09 +0000 X-CR-MTA-TID: 64aa7808 Received: from af5c24f6917a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5BAE17E8-C6D0-4BC0-8E84-F27E8E765301.1; Wed, 04 Jan 2023 11:09:01 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id af5c24f6917a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 04 Jan 2023 11:09:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lidd8+dnUJJiDL3Q7j+8swbdvYPqAq14YgTEGSnFX3k/NMddXQCKVmN1iWCB1RGF/6XFDivjHpZyN+t8RQMB+FxTrTqzKenweSSMNc4JHrgIRWBYzejrG+Q//eKSRtIxNZ0VT2y8Qzp9e/8kOVwlbVlnG0O3hiqhMF60WhkGL46xJEL3jcmYtzcgNXVQPc72AOB4db7684BD2uFGkGMtSHDtNoMaIE6EQZqEXrrcnrtIun8/zUCvCyohe+akNR1nNwWKLbFwkDAwZuIkXbi96KPqPU6/5KeV0CJdJCxRXNc0751Yv+eOME3TqZx5xEJ1ysWZq8DBAXt+HHM0mqnLGg== 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=pPIYJuBsaMx+aNSP80tAYpmofFKxu/Z1SXOMmWQcL2U=; b=e06SxDO1gLOzv4oipFa69l+3TvIQRXp8eBjDBzyDqe8I+q7o33+ivZM5OpcLhN6l93EzQec10Jy9LNaqHyyx+8l82lvkRat+PfhGAMHJC8yWdYS7/Z3/zsXcc0G4mSxsmmGODEsONq6leniKhhpAiR6+fAkoaL5Piyx+I/Q5OFvVj5fB2EPD1CxqZgNY0/I+JxVCt/L9xEZn6S52y732YynjgKIj7Cdqd2ULnIIVDu3VAUGgDNbzFo/5W/V6/jYxr+MuMz429dL+oHlQL8MR4lxhKgZJGkMRMP1/owbsTsQ8bIUAECYYn9PCPP6mB9l0dWgu68ux3MtKhhoMHvdETg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pPIYJuBsaMx+aNSP80tAYpmofFKxu/Z1SXOMmWQcL2U=; b=L+/tSWFdoelLh83kshB3CyRO3ahp65WEjVFXk/aaEAQsbSfNosoU+Y7cuboT7JRL2eZsneU9MD2R/Xj5jwaPyuJaPyNZOyVRPX+iO13Ae4O+rTLp1Bn9T1xZNlYwDtxc0O+3QIubcj8j8dDwFLv5/X+dCSdKliMVFzYd8ZSxQfU= Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by AM8PR08MB6482.eurprd08.prod.outlook.com (2603:10a6:20b:367::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.14; Wed, 4 Jan 2023 11:08:56 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::8b7b:e3be:cccb:1936]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::8b7b:e3be:cccb:1936%5]) with mapi id 15.20.5986.014; Wed, 4 Jan 2023 11:08:55 +0000 From: Tamar Christina To: =?iso-8859-1?Q?Martin_Storsj=F6?= CC: "nickc@redhat.com" , Mark Harmstone , Andrew Pinski , Richard Earnshaw , NightStrike , "wej22007@outlook.com" , "zac.walker@linaro.org" , binutils Subject: RE: [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe Thread-Topic: [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe Thread-Index: AQHZG/grKGRFLN4z3Eerd/kBOX3zWq6MndgAgAAAjMCAACNrAIAAAXsAgAAJeRCAADuZAIAAA5KAgAAPOQCAAAp1AIAAbdMAgAB404CAAAmCgIAAAA3QgAAJsgCAAABwQA== Date: Wed, 4 Jan 2023 11:08:55 +0000 Message-ID: References: <20221230024055.31841-1-mark@harmstone.com> <01e2b3d2-ad18-27ba-9761-82d2d521c00e@foss.arm.com> <005b709d-acf5-f266-1e4f-41d2c3918ba3@harmstone.com> <237bf7b4-576-945a-58dc-245432e2d9@martin.st> <367317ba-108e-fde8-98d2-0be5146f28fa@harmstone.com> <9be055ae-bfd1-b52b-3dd7-7148a6ead287@redhat.com> <8b20aeef-dbd1-6ad2-85c1-d8191c31f540@martin.st> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: D765FEB8CCFAC3438916F8B20D309C6D.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: VI1PR08MB5325:EE_|AM8PR08MB6482:EE_|AM7EUR03FT034:EE_|DBAPR08MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: 58140e2c-74bc-4a12-03bd-08daee441a58 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: fuiSclEUb7A11MVZv7figVS8nkcpifbud1umHHc3eQnRt0veXZP/Ao2fDw5vG8YAGPM34Eho7Yw6Gm2B8kYwRkrLXkA1rtyglBPW6Bt5PE7fzGQUXKv8pE5O5PN6kfs2FrYJO8a9zsW1fCRNpWKamJ5COmLcElTIT7FCMpsCG/bC7t+gq1IC06xoviS1vvwcYCXSza3YMAx+UK2iC4cuIFy20yxFRp48iUochTdOLTVk4e6o84SKrXOKeTE75PAogajWisjyddbKxCRanVswDPtMEmRFObcW8bqrRq6D47aUpptAR+xo+HhUSE/KzaBUZkFsjwyrbhKP9DHyjh8B4eIXoZZUTcbw5ONYwWKgaMgpfu/OzK9HQs1etP+9IHeWkMho2R6dAu0f4tT9brCAHntwLYc0Op1yvFxL6o9pIFewSK72s+gip/bs09Gal00ECtYGDzgKTj6dlyaeh4jSZlDri3fbnP7qYqA1N3eNtY7fdyQYxvLZW5FGgu5GZ6yD68a4YwX6KxBokJvLPztmssGK8KB262rnjP6cjQCmWnliGPoYP7Oosp7+N74jEZPa79a7Nk9Fqozcwb8769sPohnAsIRKr0vnTEvkV3WJ5Ub2Egz4jQBYXH/Qs/P76Nr9G2mAU33g63tP+agyZu2WwrXW26nqnAEHW2c8hHDyBcFYLdDErstucXU1K4unE4ghOrtkwwoDEIo6f9iYpja+tMMTDBY9mVO9IpzmA/1teGE= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB5325.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(366004)(396003)(136003)(376002)(451199015)(53546011)(7696005)(966005)(478600001)(38100700002)(26005)(186003)(71200400001)(6506007)(86362001)(9686003)(45080400002)(38070700005)(54906003)(6916009)(316002)(55016003)(66946007)(76116006)(64756008)(8676002)(4326008)(66476007)(41300700001)(2906002)(8936002)(66556008)(66446008)(52536014)(122000001)(33656002)(5660300002)(83380400001);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6482 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: AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 132cb73e-a49a-48d6-56cc-08daee4411f0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xR2RRH0+tiGa6XgxEknW9K5NHpq9n0Bl7gaVIRtlRQmoOSe9lg59u0GezeMvHPR/3Ahduq9Se9w9Be9M7ZZsWNTMNAcVtEjPCWaVXTxXVbZJubjCk/d1cOv3s2rMCVM/5jWtqt2jdeMCWUAGyA5kuzJY8GbL2CycSDPWmf5I4SkAmg2mJUWcI5N032tXfAwLX7aEy+0f3MdhsKMwVDzqvWTqpkZ6Qyw9zebDAPNQ3GlWhud/m2RG9ktUx7Ag1D27aZfXB8LcKVe7UwYl+SRP1TTE4tnrcJO1tOXtQueRFBejItweVGIFlco0YrnhYTDiZ/t2ki9phTxs29bSnRg6aSPNl6/wkz8WSlDMOqfKCjXvzYT2UBLXD12h17u5gjJ+TV1VptxbLPEQPZ9XCWEe9RUhyYJdId3cb/2dC3d82Z1IZGgTmzT9n5e2bSBxLp8d+fOTcdUwg/7Xv02pUVVx7v4OCz2LJfLvIVXbo0PhYwrIPzxPc3UdelaYh2hrLg8mFfRtYJu7Ed4lnCbUVxSNAHucuQqO7rtT30cw0mEt4swCEGLuDVIX1sR7Z5hmRT4RpHVaUAL+7wQmo6b86LPNMkgMBk8S5IZF1nfUwrayLgMcEy61O11/ZPRoGm/bY/3mXu03bQ9RLuVomK71GIhVnepPXjanh+zignorW0kqPg/kRVm6KFaOfXR59cZCkGTI+ka+1yHPQz9W3SIWlxbtVLP5iOilvOqpU/c5K7DFfgs= 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:(13230022)(4636009)(39860400002)(376002)(346002)(396003)(136003)(451199015)(36840700001)(40470700004)(46966006)(8936002)(5660300002)(52536014)(41300700001)(40460700003)(6862004)(7696005)(70586007)(70206006)(55016003)(26005)(8676002)(186003)(9686003)(4326008)(83380400001)(82740400003)(81166007)(86362001)(6506007)(356005)(36860700001)(966005)(478600001)(82310400005)(53546011)(40480700001)(2906002)(33656002)(336012)(45080400002)(54906003)(316002)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 11:09:09.2571 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58140e2c-74bc-4a12-03bd-08daee441a58 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: AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5784 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Original Message----- > From: Martin Storsj=F6 > Sent: Wednesday, January 4, 2023 11:00 AM > To: Tamar Christina > Cc: nickc@redhat.com; Mark Harmstone ; Andrew > Pinski ; Richard Earnshaw > ; NightStrike ; > wej22007@outlook.com; zac.walker@linaro.org; binutils > > Subject: RE: [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe >=20 > On Wed, 4 Jan 2023, Tamar Christina wrote: >=20 > >> -----Original Message----- > >> From: Martin Storsj=EF=BF=BD > >> Sent: Wednesday, January 4, 2023 10:25 AM > >> To: nickc@redhat.com > >> Cc: Mark Harmstone ; Tamar Christina > >> ; Andrew Pinski ; > Richard > >> Earnshaw ; NightStrike > >> ; wej22007@outlook.com; > zac.walker@linaro.org; > >> binutils > >> Subject: Re: [PATCH 1/8] ld: Rename aarch64pe emulation target to > >> arm64pe > >> > >> On Wed, 4 Jan 2023, Nick Clifton wrote: > >> > >>> This would create duplicated code sure, but not too much, and it > >>> would allow the linker to be compatible with Clang whilst still also > >>> retaining the aarch64 moniker preferred by ARM. > >> > >> As this still is framed as "compatible with Clang" - does this mean > >> that you still insist that GCC should use a different emulation name > >> when calling the linker, than what Clang does, forcing lld to also > >> start recognizing that new, different emulation name - different from > >> the one that has been in place for > >> 5 years? > > > > To be clear, GCC will very likely reject any port upstreaming that > > uses > > Arm64 for the same reason. And GCC is a lot more tightly controlled. > > At least if you want upstream support. > > > > Believe it or not I'm actually trying to help you here, the fact that > > clang has called it arm64 is why we want to allow the alias. As I > > mentioned before, it just can't be the main name. >=20 > Right - but in the case of GCC, it wouldn't be the name of a new port - i= t > would only be a single word in a file for passing linker arguments. Just = like > how "-m i386pep" is passed for x86_64 today here: > https://github.com/gcc- > mirror/gcc/blob/345dffd0d4ebff7e705dfff1a8a72017a167120a/gcc/config/i38 > 6/mingw-w64.h#L74 >=20 > So regardless of the binutils discussion, are you saying that GCC would r= eject > a patch that adds such an occurance that would pass "-m arm64pe", in a > patch that otherwise consistently calls the port "aarch64"? If it's driver only and has no source implications then It might be ok. Bu= t look at this patch, it's not driver only. By renaming the emulation target it also renam= ed the internal macros. It makes us have to maintain the name "arm64" in the source code a= long with what everything else calls aarch64 and this has more implications. Tamar >=20 > // Martin