diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2013-01-11 12:24:28 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-01-11 12:24:28 +0800 |
| commit | d5d4ee47ed3e76ec707a44095d5da11415b0a8bf (patch) | |
| tree | ac8e4ffec533a80440bd045b4ae8dc28ad3beea8 /src/cmd/ld | |
| parent | 60abc6b577895e88f8e029772ff27f9e6917d23b (diff) | |
| download | go-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.go | 8 |
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 |
