mirror of
https://github.com/golang/go
synced 2024-11-21 16:04:45 -07:00
ld: add one empty symbol into pe to make dumpbin works.
Fixes #2139. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4838056
This commit is contained in:
parent
d24a9785eb
commit
1ac7a69701
@ -453,13 +453,14 @@ addsymtable(void)
|
||||
if(nextsymoff == 0)
|
||||
return;
|
||||
|
||||
size = nextsymoff + 4;
|
||||
size = nextsymoff + 4 + 18;
|
||||
h = addpesection(".symtab", size, size);
|
||||
h->Characteristics = IMAGE_SCN_MEM_READ|
|
||||
IMAGE_SCN_MEM_DISCARDABLE;
|
||||
chksectoff(h, cpos());
|
||||
fh.PointerToSymbolTable = cpos();
|
||||
fh.NumberOfSymbols = 0;
|
||||
fh.NumberOfSymbols = 1;
|
||||
strnput("", 18); // one empty symbol
|
||||
// put symbol string table
|
||||
lputl(size);
|
||||
for (i=0; i<nextsymoff; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user