Skip to content

Go 1.26 support #80

@chenrui333

Description

@chenrui333

Summary

GoReSym v3.1.2 fails to parse a binary built from its own source when built with Go 1.26.

This is causing Homebrew formula test failures because the test runs GoReSym against itself.

Environment

  • GoReSym: v3.1.2
  • Go: go1.26.0
  • Reproduced locally on macOS arm64
  • Also seen in Homebrew CI

Reproduction

git clone --depth 1 --branch v3.1.2 https://github.com/mandiant/GoReSym.git
cd GoReSym
go version
# go version go1.26.0 ...
go build -trimpath -o goresym .
./goresym ./goresym

I also tested with -ldflags='-s -w'; result is the same.

Actual result

{"error": "Failed to parse file: no valid pclntab found"}

Exit code is non-zero (1).

Expected result

GoReSym should successfully parse its own binary (or at minimum not fail this way for a standard Go 1.26 binary).

Homebrew references

If helpful, I can provide additional output from brew test --verbose goresym.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions