From 488ad99ecf5121f50fa59d6e1a34d78fcb73eabe Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 5 Sep 2022 12:25:08 -0700 Subject: [ARM64EC 1/?] Add parsing support to llvm-objdump/llvm-readobj. This is the first patch of a patchset to add initial support for ARM64EC. Basic documentation is available at https://docs.microsoft.com/en-us/windows/uwp/porting/arm64ec-abi . (Discourse post: https://discourse.llvm.org/t/initial-patches-for-arm64ec-windows-11-now-posted/62449 .) The file format for ARM64EC is basically identical to normal ARM64. There are a few extra sections, but the existing code for reading ARM64 object files just works. Differential Revision: https://reviews.llvm.org/D125411 --- llvm/lib/Object/WindowsResource.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Object/WindowsResource.cpp') diff --git a/llvm/lib/Object/WindowsResource.cpp b/llvm/lib/Object/WindowsResource.cpp index d90a338..9ea0e17 100644 --- a/llvm/lib/Object/WindowsResource.cpp +++ b/llvm/lib/Object/WindowsResource.cpp @@ -989,6 +989,7 @@ void WindowsResourceCOFFWriter::writeFirstSectionRelocations() { Reloc->Type = COFF::IMAGE_REL_I386_DIR32NB; break; case COFF::IMAGE_FILE_MACHINE_ARM64: + case COFF::IMAGE_FILE_MACHINE_ARM64EC: Reloc->Type = COFF::IMAGE_REL_ARM64_ADDR32NB; break; default: -- cgit v1.1