From 148755a27b50134d1db72c3c0bdf500815569531 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 2 Jul 2024 11:44:43 -0700 Subject: [PATCH] cmd/link: document -checklinkname option For #67401 Change-Id: I04bff1c942a4033325450c0b7dddc7980f3373cc Reviewed-on: https://go-review.googlesource.com/c/go/+/596216 Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: Than McIntosh --- src/cmd/link/doc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd/link/doc.go b/src/cmd/link/doc.go index bd620f9878..9ec2c002f4 100644 --- a/src/cmd/link/doc.go +++ b/src/cmd/link/doc.go @@ -55,6 +55,10 @@ Flags: Set build mode (default exe). -c Dump call graphs. + -checklinkname=value + If value is 0, all go:linkname directives are permitted. + If value is 1 (the default), only a known set of widely-used + linknames are permitted. -compressdwarf Compress DWARF if possible (default true). -cpuprofile file