]> Cypherpunks.ru repositories - gostls13.git/commit
internal/sys: add LR and fixed frame size to sys.Arch
authorAustin Clements <austin@google.com>
Mon, 18 Apr 2022 17:39:52 +0000 (13:39 -0400)
committerAustin Clements <austin@google.com>
Tue, 19 Apr 2022 15:59:19 +0000 (15:59 +0000)
commit8af7fac5a1d2b3881f8f435d77adfcef6a07bedc
tree65ae1a75c65374cf8b4ab88920b5069d2a0e3f1e
parentcaa46312eeca1275ce22ecf8985ca31ef8de7883
internal/sys: add LR and fixed frame size to sys.Arch

Storing this information in the Arch eliminates some code duplication
between the compiler and linker. This information is entirely
determined by the Arch, so the current approach of attaching it to an
entire Ctxt is a little silly. This will also make it easier to use
this information from tests.

The next CL will be a rote refactoring to eliminate the
Ctxt.FixedFrameSize methods.

Change-Id: I315c524fa66a0ea99f63ae5a2a6fdc367d843bad
Reviewed-on: https://go-review.googlesource.com/c/go/+/400818
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/link.go
src/cmd/internal/sys/arch.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go