flagN = flag.Bool("n", false, "no-op (deprecated)")
FlagS = flag.Bool("s", false, "disable symbol table")
flag8 bool // use 64-bit addresses in symbol table
- flagHostBuildid = flag.String("B", "", "set ELF NT_GNU_BUILD_ID `note` or Mach-O UUID; use \"gobuildid\" to generate it from the Go build ID")
+ flagHostBuildid = flag.String("B", "", "set ELF NT_GNU_BUILD_ID `note` or Mach-O UUID; use \"gobuildid\" to generate it from the Go build ID; \"none\" to disable")
flagInterpreter = flag.String("I", "", "use `linker` as ELF dynamic linker")
flagCheckLinkname = flag.Bool("checklinkname", true, "check linkname symbol references")
FlagDebugTramp = flag.Int("debugtramp", 0, "debug trampolines")
*flagBuildid = "go-openbsd"
}
- if *flagHostBuildid != "" {
- addbuildinfo(ctxt)
+ if *flagHostBuildid == "" && *flagBuildid != "" && ctxt.IsDarwin() {
+ *flagHostBuildid = "gobuildid"
}
+ addbuildinfo(ctxt)
// enable benchmarking
var bench *benchmark.Metrics