]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd: reenable newobj mode by default
authorCherry Zhang <cherryyz@google.com>
Mon, 11 Nov 2019 16:17:33 +0000 (11:17 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 11 Nov 2019 16:39:35 +0000 (16:39 +0000)
Change-Id: I6e820a77c516363f350c2aad5bc17a2d7e7501e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/206457
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/asm/internal/flags/flags.go
src/cmd/compile/internal/gc/main.go
src/cmd/link/internal/ld/main.go

index fad87b221a876e8289ca8d35130f91f35bff4785..95575e15a3f10a72ef3e19e334a13c1f08c9d846 100644 (file)
@@ -23,7 +23,7 @@ var (
        Dynlink    = flag.Bool("dynlink", false, "support references to Go symbols defined in other shared libraries")
        AllErrors  = flag.Bool("e", false, "no limit on number of errors reported")
        SymABIs    = flag.Bool("gensymabis", false, "write symbol ABI information to output file, don't assemble")
-       Newobj     = flag.Bool("newobj", false, "use new object file format")
+       Newobj     = flag.Bool("newobj", true, "use new object file format")
 )
 
 var (
index 4b6c8f2565615374fd60b59560230b86976dd861..9ae571bd55902bd397fa61298e481faf374f5a5b 100644 (file)
@@ -277,7 +277,7 @@ func Main(archInit func(*Arch)) {
        flag.StringVar(&benchfile, "bench", "", "append benchmark times to `file`")
        flag.BoolVar(&smallFrames, "smallframes", false, "reduce the size limit for stack allocated objects")
        flag.BoolVar(&Ctxt.UseBASEntries, "dwarfbasentries", Ctxt.UseBASEntries, "use base address selection entries in DWARF")
-       flag.BoolVar(&Ctxt.Flag_newobj, "newobj", false, "use new object file format")
+       flag.BoolVar(&Ctxt.Flag_newobj, "newobj", true, "use new object file format")
        flag.StringVar(&jsonLogOpt, "json", "", "version,destination for JSON compiler/optimizer logging")
 
        objabi.Flagparse(usage)
index 9f9395b7572a22688fd9ba90be4ffb4714328d48..69e6aff643a183679fb38fa2fe1a72bce8b9b354 100644 (file)
@@ -87,7 +87,7 @@ var (
        flagInterpreter = flag.String("I", "", "use `linker` as ELF dynamic linker")
        FlagDebugTramp  = flag.Int("debugtramp", 0, "debug trampolines")
        FlagStrictDups  = flag.Int("strictdups", 0, "sanity check duplicate symbol contents during object file reading (1=warn 2=err).")
-       flagNewobj      = flag.Bool("newobj", false, "use new object file format")
+       flagNewobj      = flag.Bool("newobj", true, "use new object file format")
 
        FlagRound       = flag.Int("R", -1, "set address rounding `quantum`")
        FlagTextAddr    = flag.Int64("T", -1, "set text segment `address`")