mirror of
https://github.com/Binject/debug
synced 2026-06-08 10:28:33 +00:00
dd7757eeb3
- implement relocation add/replace APIs and serialization updates per format - generate dyld rebase/bind info from Mach-O relocs with optional ordinals - update ELF dynamic relocation tags and safe relayout handling - add/extend relocation tests and stabilize existing test suite
23 lines
376 B
Go
23 lines
376 B
Go
package gosym
|
|
|
|
import (
|
|
"os/exec"
|
|
"testing"
|
|
)
|
|
|
|
func mustHaveGoBuild(t *testing.T) {
|
|
t.Helper()
|
|
if _, err := exec.LookPath("go"); err != nil {
|
|
t.Skip("skipping; go tool not available in PATH")
|
|
}
|
|
}
|
|
|
|
func goToolPath(t *testing.T) string {
|
|
t.Helper()
|
|
path, err := exec.LookPath("go")
|
|
if err != nil {
|
|
t.Skip("skipping; go tool not available in PATH")
|
|
}
|
|
return path
|
|
}
|