]> Cypherpunks repositories - gostls13.git/commit
cmd/link: enable DWARF combining on macOS ARM64
authorCherry Zhang <cherryyz@google.com>
Fri, 4 Sep 2020 18:35:57 +0000 (14:35 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 8 Sep 2020 18:52:38 +0000 (18:52 +0000)
commit1e6ad65b43ee392676a69f769b1942edd8af0e86
treea403dbcd3cdd166a4a4fb1be7df723c4bd8cc765
parenta52a5d8a43ac23c34231e92da3aba61cd8cf7d97
cmd/link: enable DWARF combining on macOS ARM64

It appears the machoCalcStart function is meant to align the
segment, but it doesn't. Replace it with an actual alignment
calculation. Also, use the alignment from the configuration,
instead of hardcode.

With this fix we could enable DWARF combining on macOS ARM64.

Change-Id: I19ec771b77d752b83a54c53b6ee65af78a31b8ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/253558
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/arm64/obj.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho_combine_dwarf.go