On Sat, Oct 19, 2024 at 8:11 PM rudeus greyrat <rudeusquagmir...@gmail.com> wrote: > > I want to have an empty IAT when I compile go exe.
Why do you want that? > I noticed that all the imports in the IAT are because of a file in go runtime > package called > https://github.com/golang/go/blob/master/src/runtime/os_windows.go > > So having ```//go:cgo_import_dynamic runtime._CloseHandle CloseHandle%1 > "kernel32.dll"``` will result in the address of CloseHandle winapi being in > the local variable _CloseHandle and resulting in CloseHandle appearing in the > import table. > > I was not able to understand what cgo_import_dynamic really does (nor find > the code behind it). The //go:cgo_import_dynamic directive is documented in the long "implementation details" comment in cmd/cgo/doc.go. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVfESjmyvMrzcz3CRoEYui%3D4k_vceFc26JRQ905AcsnRg%40mail.gmail.com.