aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-01-11 12:24:28 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-01-11 12:24:28 +0800
commitd5d4ee47ed3e76ec707a44095d5da11415b0a8bf (patch)
treeac8e4ffec533a80440bd045b4ae8dc28ad3beea8 /src/cmd/ld
parent60abc6b577895e88f8e029772ff27f9e6917d23b (diff)
downloadgo-d5d4ee47ed3e76ec707a44095d5da11415b0a8bf.tar.xz
cmd/5l: support -Z (zero stack frame at function entry)
also added appropriate docs to cmd/ld/doc.go (largely copied from Russ's CL 6938073). R=rsc CC=golang-dev https://golang.org/cl/7004049
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/doc.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/ld/doc.go b/src/cmd/ld/doc.go
index 7fc22983db..357505f0b2 100644
--- a/src/cmd/ld/doc.go
+++ b/src/cmd/ld/doc.go
@@ -61,5 +61,13 @@ Options new in this version:
-B value
Add a NT_GNU_BUILD_ID note when using ELF. The value
should start with 0x and be an even number of hex digits.
+ -Z
+ Zero stack on function entry. This is expensive but it might
+ be useful in cases where you are suffering from false positives
+ during garbage collection and are willing to trade the CPU time
+ for getting rid of the false positives.
+ NOTE: it only eliminates false positives caused by other function
+ calls, not false positives caused by dead temporaries stored in
+ the current function call.
*/
package documentation