1
0
mirror of https://github.com/golang/go synced 2024-09-30 00:24:29 -06:00

cmd/link: fix typo in asm.go

targetting -> targeting
This commit is contained in:
Ikko Ashimine 2021-01-07 23:21:25 +09:00 committed by GitHub
parent df81a15819
commit 4cf2a211b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1041,7 +1041,7 @@ func gensymlate(ctxt *ld.Link, ldr *loader.Loader) {
}
// machoLabelName returns the name of the "label" symbol used for a
// relocation targetting s+off. The label symbols is used on darwin
// relocation targeting s+off. The label symbols is used on darwin
// when external linking, so that the addend fits in a Mach-O relocation.
func machoLabelName(ldr *loader.Loader, s loader.Sym, off int64) string {
return fmt.Sprintf("%s.%d", ldr.SymExtname(s), off/machoRelocLimit)