summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-31 22:49:14 -0400
committerRuss Cox <rsc@golang.org>2014-08-31 22:49:14 -0400
commita564350b3dcfd480034780da11487c4456809429 (patch)
treeca655e006228b73f339b0dc3db71f3dfaf7fae56 /include
parent21fcd05421c57caf41815f070c8bbf7016fd17fe (diff)
downloadgo-a564350b3dcfd480034780da11487c4456809429.tar.gz
cmd/ld: diagnose Go calling C
For example: go build -ldflags -C cmd/go 2>&1 | awk '{print $NF}' | sort | uniq -c | sort -nr LGTM=khr R=khr, josharian CC=golang-codereviews https://codereview.appspot.com/135170044
Diffstat (limited to 'include')
-rw-r--r--include/link.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h
index 2b4de789d..73f148c14 100644
--- a/include/link.h
+++ b/include/link.h
@@ -126,6 +126,7 @@ struct LSym
short type;
short version;
uchar dupok;
+ uchar cfunc;
uchar external;
uchar nosplit;
uchar reachable;