File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 33package runtime
44
55import (
6- "machine/uefi"
76 "unsafe"
87)
98
@@ -48,16 +47,12 @@ var module *exeHeader
4847func findGlobalsForPE (found func (start , end uintptr )) {
4948 // Constants used in this function.
5049 const (
51- // https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandleexa
52- GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 0x00000002
53-
5450 // https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
5551 IMAGE_SCN_MEM_WRITE = 0x80000000
5652 )
5753
5854 pe := (* peHeader )(unsafe .Add (unsafe .Pointer (module ), module .peHeader ))
5955 if pe .magic != 0x00004550 { // 0x4550 is "PE"
60- uefi .DebugPrint ("cannot find PE header" , uint64 (pe .magic ))
6156 return
6257 }
6358
Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ func findGlobals(found func(start, end uintptr)) {
1919 const (
2020 // https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandleexa
2121 GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 0x00000002
22-
23- // https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
24- IMAGE_SCN_MEM_WRITE = 0x80000000
2522 )
2623
2724 if module == nil {
You can’t perform that action at this time.
0 commit comments