• Russ Cox's avatar
    cmd/ld: report pclntab, funcdata sizes in 6l -v output · b99fa815
    Russ Cox authored
    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
    b99fa815
lib.c 52.4 KB