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://golang.org/cl/135170044
This commit is contained in:
Russ Cox 2014-08-31 22:49:14 -04:00
parent 310bc98083
commit 0bb14d74f1
7 changed files with 76 additions and 6 deletions

View file

@ -126,6 +126,7 @@ struct LSym
short type;
short version;
uchar dupok;
uchar cfunc;
uchar external;
uchar nosplit;
uchar reachable;