Package macho implements access to and creation of Mach-O object files.
This package goes beyond the Go's debug/macho
to:
- Cover ALL load commands and architectures
- Provide nice summary string output
- Allow for creating custom macho
$ go get github.com/blacktop/go-macho
package main
import "github.com/blacktop/go-macho"
func main() {
f, err := os.Open("/path/to/macho")
if err != nil {
panic(err)
}
m, err := macho.NewFile(f)
if err != nil {
panic(err)
}
fmt.Println(m.FileTOC.String())
}
MIT Copyright (c) 2021 blacktop