go/src/cmd/link
Aleksey Markin 9302a57134 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>
2025-04-03 12:02:03 -07:00
..
internal cmd/link/internal/ld: introduce -funcalign=N option 2025-04-03 12:02:03 -07:00
testdata cmd/link: choose one with larger size for duplicated BSS symbols 2025-03-28 12:00:23 -07:00
cgo_test.go cmd/link: use only the configured C compiler in TestCGOLTO 2023-03-09 22:13:02 +00:00
doc.go cmd/link/internal/ld: introduce -funcalign=N option 2025-04-03 12:02:03 -07:00
dwarf_test.go cmd/link, go/internal/gccgoimporter: get ar from env by default in tests 2024-10-28 13:39:24 +00:00
elf_test.go cmd/link: only check PIE size difference when the linkmode is the same 2025-03-13 04:22:49 -07:00
link_test.go cmd/link/internal/ld: introduce -funcalign=N option 2025-04-03 12:02:03 -07:00
linkbig_test.go all: fix printf(var) mistakes detected by latest printf checker 2024-09-04 18:16:59 +00:00
main.go
script_test.go cmd: add README generation for compiler + linker script tests 2024-07-31 13:21:20 +00:00