PureGo Version
v0.9.1
Operating System
Go Version (go version)
go1.25.4
What steps will reproduce the problem?
- Build this app for
linux/amd64:
package main
import "github.com/ebitengine/purego"
func main() {
purego.Dlopen("", 0)
}
-
Pack binary with UPX
-
Run result on alpine linux
What is the expected result?
The binary is running
What happens instead?
Binary fail with error:
ld-linux-x86-64.so.2: /tmp/tmp: Not a valid dynamic program
Anything else you feel useful to add?
All works fine in Debian linux. Problem only with purego + upx + alpine. If you remove any of the three components, everything will work.
PureGo Version
v0.9.1
Operating System
Go Version (
go version)go1.25.4
What steps will reproduce the problem?
linux/amd64:Pack binary with UPX
Run result on alpine linux
What is the expected result?
The binary is running
What happens instead?
Binary fail with error:
Anything else you feel useful to add?
All works fine in Debian linux. Problem only with
purego+upx+alpine. If you remove any of the three components, everything will work.