Skip to content

Commit 9cf6c65

Browse files
committed
[dev.link] cmd: default to old object file format
Flip back to the old object files for Go 1.14. Change-Id: I4ad499460fb7156b63fc63e9c6ea4f7099e20af2 Reviewed-on: https://go-review.googlesource.com/c/go/+/204098 Run-TryBot: Cherry Zhang <[email protected]> Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent db75205 commit 9cf6c65

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cmd/asm/internal/flags/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
Dynlink = flag.Bool("dynlink", false, "support references to Go symbols defined in other shared libraries")
2424
AllErrors = flag.Bool("e", false, "no limit on number of errors reported")
2525
SymABIs = flag.Bool("gensymabis", false, "write symbol ABI information to output file, don't assemble")
26-
Newobj = flag.Bool("newobj", true, "use new object file format")
26+
Newobj = flag.Bool("newobj", false, "use new object file format")
2727
)
2828

2929
var (

src/cmd/compile/internal/gc/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func Main(archInit func(*Arch)) {
273273
flag.StringVar(&benchfile, "bench", "", "append benchmark times to `file`")
274274
flag.BoolVar(&smallFrames, "smallframes", false, "reduce the size limit for stack allocated objects")
275275
flag.BoolVar(&Ctxt.UseBASEntries, "dwarfbasentries", Ctxt.UseBASEntries, "use base address selection entries in DWARF")
276-
flag.BoolVar(&Ctxt.Flag_newobj, "newobj", true, "use new object file format")
276+
flag.BoolVar(&Ctxt.Flag_newobj, "newobj", false, "use new object file format")
277277

278278
objabi.Flagparse(usage)
279279

src/cmd/link/internal/ld/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var (
8686
flagInterpreter = flag.String("I", "", "use `linker` as ELF dynamic linker")
8787
FlagDebugTramp = flag.Int("debugtramp", 0, "debug trampolines")
8888
FlagStrictDups = flag.Int("strictdups", 0, "sanity check duplicate symbol contents during object file reading (1=warn 2=err).")
89-
flagNewobj = flag.Bool("newobj", true, "use new object file format")
89+
flagNewobj = flag.Bool("newobj", false, "use new object file format")
9090

9191
FlagRound = flag.Int("R", -1, "set address rounding `quantum`")
9292
FlagTextAddr = flag.Int64("T", -1, "set text segment `address`")

0 commit comments

Comments
 (0)