]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: document -checklinkname option
authorIan Lance Taylor <iant@golang.org>
Tue, 2 Jul 2024 18:44:43 +0000 (11:44 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 3 Jul 2024 00:14:52 +0000 (00:14 +0000)
For #67401

Change-Id: I04bff1c942a4033325450c0b7dddc7980f3373cc
Reviewed-on: https://go-review.googlesource.com/c/go/+/596216
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/doc.go

index bd620f987831f7f435b2be4325242edafea3c843..9ec2c002f40e283268d90010a1673d61512cf7f9 100644 (file)
@@ -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