-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About judging whether golang abi is register-based #262
Comments
Does it still exist while use |
|
in golang 1.18 , bi, e := buildinfo.ReadFile(path)
if e != nil {
return nil, ErrVersionNotFound
}
fmt.Println(bi.GoVersion) |
…d) (#262) Signed-off-by: CFC4N <[email protected]>
…d) (#262) Signed-off-by: CFC4N <[email protected]>
thanks for @Hackerl , It's fixed. and eCapture updated golang version to |
https://github.com/ehids/ecapture/blob/4c74089056dd2ec65b05665d021f6ba68055588a/user/module/probe_gossl.go#L43
golang uses register-based abi since 1.17(x64), minimum versions for other architectures require further confirmation.
Also, to read the version of golang binary, you can use debug/buildinfo.
The text was updated successfully, but these errors were encountered: