From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id F24093858D39 for ; Wed, 19 Oct 2022 09:48:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F24093858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-x529.google.com with SMTP id b12so24407507edd.6 for ; Wed, 19 Oct 2022 02:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:to:from :from:to:cc:subject:date:message-id:reply-to; bh=TvFzNTZT2l6smJt74ka2kHGeGWCi0+NZ31wN58HVYeo=; b=SsCUHnjjl3rQwS7Z/5MCl67QTpPL4xMmLUealxBQZwSMGj81GqfIrNJlEJrU2R9zit 5U6SQEcOusYRhavs636QUQbjBgNCamdOJXQmdXePiG+OCU0uVZ2bMD00fIKC6SsMWr/N uvfs1VAzUEB+xdULgcR8jgs/R5X9qeU8BEvoFkaFlVeLVbnmseVTzug9gWRm9P6Aks+7 C8AIunOkKdr3BinjWoUNWQn0hSF6vqjggAzoxgroBDUeNMS5a4gugTPbTi90Hu+fuY5o ZcKdWPvLg8IFLTFIyISYiBiLISV83gYBsijgLh7xzwgU0h51uHIeN694mtI9giaZfN8j /XRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TvFzNTZT2l6smJt74ka2kHGeGWCi0+NZ31wN58HVYeo=; b=BmWVQNPudSq+xiTsvl5duC7VKGACxYbHpasltu/jKbZyc52HzmecQTjWoyejx/nP6h aDe3NGziOVgorehjqJH5QIAFqHeaaPjBzkXtnvgjDnS2FvyJVTgrkgg3r+yCFR2RRQRW vZfy1PvSlBH1pePutTBcAof8zNzV+4JoMUyZUPgvMIpIkFuWilBy1QEH4qkAopDwVC/P THYsoJmGCY2ozK1qTQVkxKCwXAh0lNWlcCvag2+0TCpAl/6va8++p6w+AYDSYL68exGZ 7bGtTWenCkwhPnuadU1X1KDBMz8GcqWRN/MWmOAlK8xtRJskLEXLGbiI2ILPw9oHVUrU wAfQ== X-Gm-Message-State: ACrzQf2zGtAop3zkIabUIHGh3+Frh+lUgISWkjjx5/rXZkZUpAK5HxRw OYtSWqx54ycI7EWVHdpnisyFNLMwkVG89Djp X-Google-Smtp-Source: AMsMyM4njFMRJ45eC0+pZ9pBa8tA/VAg93O/en+mE6S39NKulpLUzc5mfzpl62u07booL+M8tgzXwQ== X-Received: by 2002:a05:6402:3594:b0:45d:acf9:c782 with SMTP id y20-20020a056402359400b0045dacf9c782mr6811831edc.63.1666172936519; Wed, 19 Oct 2022 02:48:56 -0700 (PDT) Received: from zach1 ([94.230.145.250]) by smtp.gmail.com with ESMTPSA id p7-20020a170906784700b0078d9e26db54sm8775292ejm.88.2022.10.19.02.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2022 02:48:55 -0700 (PDT) From: To: References: <027ae69a-636b-6757-297a-eec42936401e@linaro.org> In-Reply-To: <027ae69a-636b-6757-297a-eec42936401e@linaro.org> Subject: RE: [PATCH v3] aarch64-pe support for LD, GAS and BFD Date: Wed, 19 Oct 2022 11:48:56 +0200 Message-ID: <000401d8e3a0$0373e8b0$0a5bba10$@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQIXbaF26JKxyTesY9plBnABnLGQya2YYhOg X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: Sorry - this patch caused a build break: checking for PT_GETDBREGS... /usr/bin/ld: = ../bfd/.libs/libbfd.a(targets.o):(.data.rel.ro+0x48): undefined = reference to `aarch64_pe_le_vec' /usr/bin/ld: ../bfd/.libs/libbfd.a(targets.o):(.data.rel.ro+0x17c0): = undefined reference to `aarch64_pe_le_vec' collect2: error: ld returned 1 exit status make[4]: *** [Makefile:1276: as-new] Error 1 Investigating now and hope to fix soon (or roll back.) Zac -----Original Message----- From: Zac Walker =20 Sent: 14 October 2022 09:58 To: binutils@sourceware.org Subject: [PATCH v3] aarch64-pe support for LD, GAS and BFD V3 of the patch originally written by Jedidiah Thompson. It allows = aarch64-pe to be targeted natively, not having to use objcopy to convert = it from ELF to PE. Between V2 and V3 I made a few recommended updates most notably adding = the missing BFD_RELOC_AARCH64_BRANCH19 and additional const correctness. = I have included a diff between patches v2 and v3. Patch and diff = included as attachments to avoid text formatting issues. Changes since that original patch: - Added minimal relocation support and tested generated binaries run on = a Surface-ProX ARM64 test machine. - Been through a review process with colleagues at Linaro. Linaro has = agreed to run CI for aarch64-pe going forward in their test lab. - Run tests for multiple platforms; aarch64-linux-gnu, x86_64-linux-gnu, = x86_64-w64-mingw32. Those tests pass and see no regressions. Multiple = GAS tests still fail for aarch64-pe because of ELF specific assumptions. = I plan to fix these later. The long-term goal of this work is to help enable MSYS2 for Window on = ARM64. As discussed here: = https://github.com/msys2/MSYS2-packages/issues/1888 The original work by Jedidiah Thompson here can be found here: = https://sourceware.org/pipermail/binutils/2022-January/119077.html Regards, Zac Walker