]> Cypherpunks repositories - gostls13.git/commit
debug/pe: support PE files which contain no symbol table (if NumberOfSymbols is equal...
authorRobin Eklind <r.eklind.87@gmail.com>
Tue, 9 Oct 2012 00:15:53 +0000 (11:15 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 9 Oct 2012 00:15:53 +0000 (11:15 +1100)
commite9f0fc8823178470fa429379ba873567b8496f8c
tree952cef08a2f454a8f6dcd2bfa749ad49890a44eb
parent6f7b66db5008722a91a81b659fd9bb8dbdee050a
debug/pe: support PE files which contain no symbol table (if NumberOfSymbols is equal to 0 in the IMAGE_FILE_HEADER structure).

No longer assume that e_lfanew (in the IMAGE_DOS_HEADER strcuture) is always one byte. It is now regarded as a 4 byte uint32.

Fixes #4177.

R=golang-dev, alex.brainman, dave, minux.ma
CC=golang-dev
https://golang.org/cl/6587048
src/pkg/debug/pe/file.go