]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/mips64: fix use of -s flags
authorMichael Matloob <matloob@golang.org>
Mon, 22 Aug 2016 22:53:01 +0000 (18:53 -0400)
committerMichael Matloob <matloob@golang.org>
Mon, 22 Aug 2016 22:59:20 +0000 (22:59 +0000)
My flags change reversed the meaning of -s within mips64's
linker code. This should fix that.

Change-Id: Ia24002469e557fb29badfd830134e61c1dd7e16e
Reviewed-on: https://go-review.googlesource.com/27555
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/link/internal/mips64/asm.go

index 404dfa21b77cff2d73e1fc0748d289c26d38c808..0b0479e336de2b7f59e125bd339db9764e654ac6 100644 (file)
@@ -226,7 +226,7 @@ func asmb(ctxt *ld.Link) {
 
        ld.Lcsize = 0
        symo := uint32(0)
-       if *ld.FlagS {
+       if !*ld.FlagS {
                // TODO: rationalize
                if ctxt.Debugvlog != 0 {
                        fmt.Fprintf(ctxt.Bso, "%5.2f sym\n", obj.Cputime())