Skip to content

Commit 80f1bb7

Browse files
committed
fix: build error
1 parent 55a84bb commit 80f1bb7

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/runtime/os_winabi.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package runtime
44

55
import (
6-
"machine/uefi"
76
"unsafe"
87
)
98

@@ -48,16 +47,12 @@ var module *exeHeader
4847
func 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

src/runtime/os_windows.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)