Skip to content
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

go:linkname giving error "invalid reference to syscall.munmap" in go 1.23.0 #14

Open
ddbera95 opened this issue Aug 21, 2024 · 2 comments

Comments

@ddbera95
Copy link

I am using this library in go 1.22 and after updating it into go 1.23 it giving error "invalid reference to syscall.munmap"

//go:linkname munmap syscall.munmap
func munmap(addr unsafe.Pointer, length uintptr) (err error)

@ii64 can you help me

@VEDANTDOKANIA
Copy link

@ii64 I am also facing the same issue. Pls help in the same.

@ii64
Copy link
Owner

ii64 commented Aug 23, 2024

On my backlog, will let you know. Starting on 1.23 the usage of linkname got more restrictive therefore we need to implement the mmap syscall ourselves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants