pkujhd / goloader

load and run golang code at runtime.
Apache License 2.0
497 stars 58 forks source link

//go:linkname lock down future use #98

Closed pkujhd closed 3 months ago

pkujhd commented 4 months ago

on golang >=1.23 will lock down future use linkname https://github.com/golang/go/issues/67401

this package use linkname access firstmodule and rtype. open issue follow this change.

fumeboy commented 4 months ago

use checklinkname=0 to keep linkname work ok

pkujhd commented 3 months ago

--ldflags="-checklinkname=1" as default value is actived in golang 1.23.rc1