[Git][ghc/ghc][wip/andreask/linker_fix] rts: Support AArch64/X86(32bit) coff files in loader.

Andreas Klebinger pushed to branch wip/andreask/linker_fix at Glasgow Haskell Compiler / GHC Commits: 2747a757 by Andreas Klebinger at 2025-08-04T09:27:32+02:00 rts: Support AArch64/X86(32bit) coff files in loader. Fixes #26231. - - - - - 1 changed file: - rts/linker/LoadArchive.c Changes: ===================================== rts/linker/LoadArchive.c ===================================== @@ -144,6 +144,12 @@ static enum ObjectFileFormat identifyObjectFile_(char* buf, size_t sz) if (sz > 8 && ((uint64_t*)buf)[0] == 0x86640002ffff0000) { return COFFAmd64; } + if (sz > 8 && ((uint64_t*)buf)[0] == 0x014c0002ffff0000) { + return COFFI386; + } + if (sz > 8 && ((uint64_t*)buf)[0] == 0xaa640002ffff0000) { + return COFFAArch64; + } return NotObject; } View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2747a757779199cf68af6f13440e9bc1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2747a757779199cf68af6f13440e9bc1... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Andreas Klebinger (@AndreasK)