debug/plan9obj

Guided tour · Runtime & Debug · pkg.go.dev →

Read Plan 9 a.out-format object files. Rarely needed outside Plan 9 tooling.

Usage

Open

f, _ := plan9obj.Open("a.out")
defer f.Close()
for _, s := range f.Sections {
    fmt.Println(s.Name, s.Size)
}