Skip to content

Incompatible with UPX under Linux alpine #371

Description

@AlexxIT

PureGo Version

v0.9.1

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • NetBSD
  • Android
  • iOS

Go Version (go version)

go1.25.4

What steps will reproduce the problem?

  1. Build this app for linux/amd64:
package main

import "github.com/ebitengine/purego"

func main() {
	purego.Dlopen("", 0)
}
  1. Pack binary with UPX

  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions