• Alex Brainman's avatar
    debug/pe: use kernel32.dll in TestImportTableInUnknownSection · 048c9164
    Alex Brainman authored
    TestImportTableInUnknownSection was introduced in CL 110555 to
    test PE executable with import table located in section other than
    ".idata". We used atmfd.dll for that purpose, but it seems
    atmfd.dll is not present on some systems.
    
    Use kernel32.dll instead. kernel32.dll import table is located in
    ".rdata" section, so it should do the job. And every Windows
    system has kernel32.dll file.
    
    Also make TestImportTableInUnknownSection run on windows-arm,
    since windows-arm should also have kernel32.dll file.
    
    Updates #27904
    
    Change-Id: Ie005ee10e46ae0c06e83929d581e89f86c051eea
    Reviewed-on: https://go-review.googlesource.com/c/151137
    Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    048c9164
Name
Last commit
Last update
..
testdata Loading commit data...
file.go Loading commit data...
file_cgo_test.go Loading commit data...
file_test.go Loading commit data...
pe.go Loading commit data...
section.go Loading commit data...
string.go Loading commit data...
symbol.go Loading commit data...