Hacker News new | ask | show | jobs
by njuw 1885 days ago
> starting in Go 1.16, the pclntab is not present any more, and instead is re-computed from other data in the executable file.

Does anyone have a source for this? As it still appears to be there

- Go 1.15 https://i.imgur.com/3YlZGOk.png

- Go 1.16 https://i.imgur.com/gGYsj32.png

1 comments

No source needed -- you're right. The author's looking in the symbol table, and in 1.16 the Go linker set the size of runtime.pclntab to 0. If the OP used nm to look at their binary, they'd have seen that pclntab is still there. They author has apparently revised their article to address some of this (yet still draw some incorrect conclusions).

(This is derived from Russ' discussion above.)