• Alex Brainman's avatar
    cmd/link: do not use _GLOBAL_OFFSET_TABLE_ on windows/386 · 41fd4c88
    Alex Brainman authored
    When building windows/386 executable that imports "plugin" package,
    cmd/link adds reference to DLL with blank name. Running
    
    objdump -x a.exe
    
    reports
    
    ...
    The Import Tables (interpreted .idata section contents)
    ...
    DLL Name:
    vma:  Hint/Ord Member-Name Bound-To
    25308a     0  _GLOBAL_OFFSET_TABLE_
    ...
    
    So, obviously, executable cannot run, because Windows complains
    that it cannot find DLL when trying to run it.
    
    Stop using _GLOBAL_OFFSET_TABLE_ on windows/386.
    
    Fixes #28789
    
    Change-Id: Idd489eafd998f6e329f40c5d90a2a8965ab1d873
    Reviewed-on: https://go-review.googlesource.com/c/151139
    Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    41fd4c88
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...