From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id B1A4B3858D1E for ; Wed, 4 Jan 2023 02:38:58 +0000 (GMT) Received: by mail-wm1-x334.google.com with SMTP id m8-20020a05600c3b0800b003d96f801c48so23097802wms.0 for ; Tue, 03 Jan 2023 18:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=NnKYqoFM53/+Fd0/RWKyu3SHKqgk8Ev+ZFWs0rnjnis=; b=o5o7QzeLWl5+JZuOoRhiI4cZpn+Xt3nyVMstP1z52JlByUiO83B4nF9IdpJsLSMeoT efo56GnKUAi+lkIAh3dwiczKxB6v8w4BnP0BPYSnqn4jVGGQ77S0IgKHvcw9P+dmtkGY tnsA/9go7YnyRs9tk/Lzp5y5Ldw9+4fyyNFkKHEKsWJ0Cx+evNJnF5SBWK7XTEbnQW+M +cY3R0gxcG2EmP+brQIFaz6xwcExKNco6M1Rr5tVo+qPbp49BuNMuOuKVBVYTFLNCRRd JRDjmpxRwjn/deB98G1ZsgmN9ND6G/fmkoTOJuU2AkKi2luet3/rhWtCgTa8H3grpJon nQew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NnKYqoFM53/+Fd0/RWKyu3SHKqgk8Ev+ZFWs0rnjnis=; b=BxIc8fMpr6oMwdaFarR/zh6c6wqdmf7iEq+JLuCojx8eX3TXKYEe2fvhpPTiLWVtPq zfC6nTyx3WPbFnPTmHR51BtB8AjGvVkJX5sNU9z1aNxPAEFR4Qvx2iVImAaDPFEV2k6K n+WcT0NfJKhS9GPy2kC7V243T6bJD7U5FAJ7iwpd/PVs1qxj1GsvXmHwKIzYnf73x5aO X32VI6zAvzz2U2rj66ifcPfY5govWMOVM1kueEzSF+Q/S2riPstaRpE/Cr6JjG0r0CAz hkevVeEIqrgEMHxkROIL/h2N2ySR/TyV6qXL/pmnaMiHg+cR60LHVFq9EN+mXhLVYC0h efSQ== X-Gm-Message-State: AFqh2krMC3Ie59sBFLDQWPpvYdKt1vqXArglBSNhzpK0M479eH4/QHqy y+j7T1RmwkyEkd2k4UmgiHQ= X-Google-Smtp-Source: AMrXdXtlEFDPSfNocZIgm31DGjjqvIWIbN55CAR4AZJ1M03tMDB7eJJiT4CyvSDvinZ9ntT7+sxhnw== X-Received: by 2002:a7b:c8ca:0:b0:3cf:728e:c224 with SMTP id f10-20020a7bc8ca000000b003cf728ec224mr32751573wml.6.1672799937008; Tue, 03 Jan 2023 18:38:57 -0800 (PST) Received: from ?IPV6:2a02:8010:64ea:0:8eb8:7eff:fe53:9d5f? ([2a02:8010:64ea:0:8eb8:7eff:fe53:9d5f]) by smtp.googlemail.com with ESMTPSA id f2-20020a7bcd02000000b003d9a71ee54dsm17450973wmj.36.2023.01.03.18.38.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 18:38:56 -0800 (PST) Sender: Mark Harmstone Message-ID: <367317ba-108e-fde8-98d2-0be5146f28fa@harmstone.com> Date: Wed, 4 Jan 2023 02:38:54 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe Content-Language: en-US To: =?UTF-8?Q?Martin_Storsj=c3=b6?= , Tamar Christina Cc: Andrew Pinski , Richard Earnshaw , NightStrike , "wej22007@outlook.com" , "zac.walker@linaro.org" , binutils , "nickc@redhat.com" 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> From: Mark Harmstone In-Reply-To: <237bf7b4-576-945a-58dc-245432e2d9@martin.st> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/1/23 20:05, Martin Storsjö wrote: > On Tue, 3 Jan 2023, Tamar Christina wrote: > >> I don't think we'll need to patch LLVM as you typically don't specify the emulation when using ld. > > When cross compiling, then the compiler driver (gcc or clang) will specify it. I'm not 100%, but I'm fairly sure that GCC *always* passes the emulation name to ld. > On Tue, 3 Jan 2023, Tamar Christina wrote: > > The reason for insisting on this change is non-technical in nature. For a project such as binutils we always want the primary name to reflect what the architecture calls things. Which, while valid, is obviously not important enough to warrant adding unneeded complexity. And ARM Ltd. has at the very least acquiesced in the naming of the architecture as ARM64: see https://developer.arm.com/documentation/102474/0100/Fundamentals-of-Armv8-Neon-technology, "GNU and Linux documentation sometimes refers to AArch64 as ARM64". Or Microsoft's "PE Format" page, which is an official part of the UEFI specification, which uses "ARM64" throughout. And that's before we get to the fact that the corresponding "aarch32" seems to be used hardly anywhere. It's also worth pointing out that there's no concept of emulation aliases at the moment, so someone would have to develop and test that. And having 300+ emulations, and an alias for just one, seems a little perverse. Nick, what do you want me to do here? Mark