]> Cypherpunks repositories - gostls13.git/commit
debug/pe: use kernel32.dll in TestImportTableInUnknownSection
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 24 Nov 2018 05:54:01 +0000 (16:54 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 24 Nov 2018 23:55:07 +0000 (23:55 +0000)
commit048c9164a0c5572df18325e377473e7893dbfb07
tree2bd733aca008c7a68e11573e176a4a87c1f37cd4
parent04105ef1da9e23dc78d0a68b089ea8bdcb120d20
debug/pe: use kernel32.dll in TestImportTableInUnknownSection

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: Brad Fitzpatrick <bradfitz@golang.org>
src/debug/pe/file_test.go