]> Cypherpunks repositories - gostls13.git/commitdiff
runtime,cmd/link/internal/ld: fix typos
authortyltr <tylitianrui@126.com>
Wed, 26 May 2021 15:41:27 +0000 (15:41 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 May 2021 16:11:00 +0000 (16:11 +0000)
Change-Id: I558590cef7e2311aadbdcb4088033e350d3aae32
GitHub-Last-Rev: 513944a6238e0e32e2a2c266b70f7d50c9db508d
GitHub-Pull-Request: golang/go#46389
Reviewed-on: https://go-review.googlesource.com/c/go/+/322809
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/runtime/malloc.go

index 223df63d9df7af62f43e86a0ef83fb358b8e1495..70fbb9dc4e24cf2d47c78c89b072684625735784 100644 (file)
@@ -1550,7 +1550,7 @@ func (ctxt *Link) dodata(symGroupType []sym.SymKind) {
 
        if ctxt.HeadType == objabi.Haix && ctxt.LinkMode == LinkExternal {
                // These symbols must have the same alignment as their section.
-               // Otherwize, ld might change the layout of Go sections.
+               // Otherwise, ld might change the layout of Go sections.
                ldr.SetSymAlign(ldr.Lookup("runtime.data", 0), state.dataMaxAlign[sym.SDATA])
                ldr.SetSymAlign(ldr.Lookup("runtime.bss", 0), state.dataMaxAlign[sym.SBSS])
        }
index 81e522588301f92d57feb9dbc5d34b93b72ad6f4..2759bbdaf90f5539a06197728d7fa8476bf89e64 100644 (file)
@@ -296,7 +296,7 @@ const (
        // high addresses if viewed as unsigned).
        //
        // On aix/ppc64, this offset allows to keep the heapAddrBits to
-       // 48. Otherwize, it would be 60 in order to handle mmap addresses
+       // 48. Otherwise, it would be 60 in order to handle mmap addresses
        // (in range 0x0a00000000000000 - 0x0afffffffffffff). But in this
        // case, the memory reserved in (s *pageAlloc).init for chunks
        // is causing important slowdowns.