-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Description
What version of Go are you using (go version
)?
go tip
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (go env
)?
Big endian systems, e.g. s390, PPC BE.
What did you do?
On a big-endian machine, run "go test debug/pe"
What did you expect to see?
clean run
What did you see instead?
--- FAIL: TestReadCOFFSymbolAuxInfo (0.00s)
symbols_test.go:76: COFFSymbolReadSectionDefAux on 39 bad return, got:
{Size:134217728 NumRelocs:256 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:0 _:[2 0 0]}
want:
{Size:8 NumRelocs:1 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:2 _:[0 0 0]}
symbols_test.go:76: COFFSymbolReadSectionDefAux on 81 bad return, got:
{Size:3791847424 NumRelocs:256 NumLineNumbers:0 Checksum:1624223678 SecNum:32 Selection:0 _:[0 0 0]}
want:
{Size:994 NumRelocs:1 NumLineNumbers:0 Checksum:1624223678 SecNum:32 Selection:0 _:[0 0 0]}
FAIL
FAIL debug/pe 0.003s
FAIL
Basically it looks as though the new COFFSymbolReadSectionDefAux is not working properly in a big-endian environment.