]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: emit Mach-O relocations in mmap
authorCherry Zhang <cherryyz@google.com>
Mon, 6 Jul 2020 22:44:42 +0000 (18:44 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 7 Jul 2020 14:44:43 +0000 (14:44 +0000)
commit59a702aa6aca364eb75f40261fdafe4ae9be153e
tree26426a52407c75b8c8590a993fe30f9815904569
parent041d8850a15a4c4af23f8cb21cc47c0b4d85d7fa
[dev.link] cmd/link: emit Mach-O relocations in mmap

Following CL 240399 and CL 240400, do the same for Mach-O.

Linking cmd/compile with external linking,

name         old time/op    new time/op    delta
Asmb2_GC       32.7ms ± 2%    13.5ms ± 6%   -58.56%  (p=0.008 n=5+5)

name         old alloc/op   new alloc/op   delta
Asmb2_GC       16.5MB ± 0%     6.4MB ± 0%   -61.15%  (p=0.008 n=5+5)

Change-Id: I0fd7019d8713d1940e5fbbce4ee8eebd926451a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/241178
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/amd64/obj.go
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/arm64/obj.go
src/cmd/link/internal/ld/asmb.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go