mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime,cmd/link/internal/ld: fix typos
Change-Id: I558590cef7e2311aadbdcb4088033e350d3aae32
GitHub-Last-Rev: 513944a623
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>
This commit is contained in:
parent
e4615ad74d
commit
bfd7798a6c
2 changed files with 2 additions and 2 deletions
|
|
@ -1550,7 +1550,7 @@ func (ctxt *Link) dodata(symGroupType []sym.SymKind) {
|
||||||
|
|
||||||
if ctxt.HeadType == objabi.Haix && ctxt.LinkMode == LinkExternal {
|
if ctxt.HeadType == objabi.Haix && ctxt.LinkMode == LinkExternal {
|
||||||
// These symbols must have the same alignment as their section.
|
// 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.data", 0), state.dataMaxAlign[sym.SDATA])
|
||||||
ldr.SetSymAlign(ldr.Lookup("runtime.bss", 0), state.dataMaxAlign[sym.SBSS])
|
ldr.SetSymAlign(ldr.Lookup("runtime.bss", 0), state.dataMaxAlign[sym.SBSS])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,7 @@ const (
|
||||||
// high addresses if viewed as unsigned).
|
// high addresses if viewed as unsigned).
|
||||||
//
|
//
|
||||||
// On aix/ppc64, this offset allows to keep the heapAddrBits to
|
// 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
|
// (in range 0x0a00000000000000 - 0x0afffffffffffff). But in this
|
||||||
// case, the memory reserved in (s *pageAlloc).init for chunks
|
// case, the memory reserved in (s *pageAlloc).init for chunks
|
||||||
// is causing important slowdowns.
|
// is causing important slowdowns.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue