mirror of
https://github.com/golang/go
synced 2024-11-26 22:01:27 -07:00
cmd/go: recognize DLL magic from llvm binaries
When using LLD with c-shared, the magic in the output DLL is slightly different than for EXEs. Change-Id: Icc5f34f7bb61f11a9d75494236b7797cc1988b40 Reviewed-on: https://go-review.googlesource.com/c/go/+/291638 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
bf5fa2d198
commit
f1562c7610
@ -1841,6 +1841,7 @@ var objectMagic = [][]byte{
|
|||||||
{0xCE, 0xFA, 0xED, 0xFE}, // Mach-O little-endian 32-bit
|
{0xCE, 0xFA, 0xED, 0xFE}, // Mach-O little-endian 32-bit
|
||||||
{0xCF, 0xFA, 0xED, 0xFE}, // Mach-O little-endian 64-bit
|
{0xCF, 0xFA, 0xED, 0xFE}, // Mach-O little-endian 64-bit
|
||||||
{0x4d, 0x5a, 0x90, 0x00, 0x03, 0x00}, // PE (Windows) as generated by 6l/8l and gcc
|
{0x4d, 0x5a, 0x90, 0x00, 0x03, 0x00}, // PE (Windows) as generated by 6l/8l and gcc
|
||||||
|
{0x4d, 0x5a, 0x78, 0x00, 0x01, 0x00}, // PE (Windows) as generated by llvm for dll
|
||||||
{0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386
|
{0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386
|
||||||
{0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64
|
{0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64
|
||||||
{0x00, 0x00, 0x06, 0x47}, // Plan 9 arm
|
{0x00, 0x00, 0x06, 0x47}, // Plan 9 arm
|
||||||
|
Loading…
Reference in New Issue
Block a user