mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-15 21:00:27 +00:00
Make badlinkname without bad linkname
This commit is contained in:
@@ -8,6 +8,12 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// cmd/compile creates the method symbols of *tls.Conn and of its field types with their
|
||||
// package recorded when the type is first used by a declaration; a linkname pull processed
|
||||
// afterwards reuses that symbol as a package-indexed reference, which the linker's
|
||||
// -checklinkname does not inspect. This declaration must precede the linkname declarations.
|
||||
var _ *tls.Conn
|
||||
|
||||
type Methods struct {
|
||||
readRecord func(c unsafe.Pointer) error
|
||||
handlePostHandshakeMessage func(c unsafe.Pointer) error
|
||||
|
||||
Reference in New Issue
Block a user