]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: report pclntab, funcdata sizes in 6l -v output
authorRuss Cox <rsc@golang.org>
Thu, 1 Aug 2013 16:58:27 +0000 (12:58 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 1 Aug 2013 16:58:27 +0000 (12:58 -0400)
commitb99fa8155514d4a5dad366dde9be8ae76333e6a9
treeb9b22e0c19b1bde4944b7013ec539bfdf0ea9f3e
parentc24e60eebb822c39523a894e7a46a70eccc270d4
cmd/ld: report pclntab, funcdata sizes in 6l -v output
Also move chatty recent additions to -v -v.

For what it's worth:

$ go build -o /dev/null -ldflags -v cmd/go
...
 0.87 pclntab=1110836 bytes, funcdata total 69700 bytes
...
$

This broke the ELF builds last time because I tried to dedup
the funcdata in case the same funcdata was pointed at by
multiple functions. That doesn't currently happen, so I've
removed that test.

If we start doing bitmap coalescing we'll need to figure out
how to measure the size more carefully, but I think at that
point the bitmaps will be an extra indirection away from the
funcdata anyway, so the dedup I used before wouldn't help.

R=ken2
CC=golang-dev
https://golang.org/cl/12269043
src/cmd/ld/lib.c