]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: introduce -funcalign=N option
authorAleksey Markin <alexanius@gmail.com>
Wed, 26 Mar 2025 15:47:15 +0000 (18:47 +0300)
committerCherry Mui <cherryyz@google.com>
Thu, 3 Apr 2025 19:02:03 +0000 (12:02 -0700)
commit9302a57134a698b62576cd3b849017a02c731c98
tree1bd3ec037ceffd3ff777c8c0779020705e038a9c
parent5b36f613565b98c4f6610aa6c1a203e294b2f5b4
cmd/link/internal/ld: introduce -funcalign=N option

This patch adds linker option -funcalign=N that allows to set alignment
for function entries.

This CL is based on vasiliy.leonenko@gmail.com's cl/615736.

For #72130

Change-Id: I57e5c9c4c71a989533643fda63a9a79c5c897dea
Reviewed-on: https://go-review.googlesource.com/c/go/+/660996
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/doc.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.go
src/cmd/link/link_test.go