proc: read G struct offset from runtime.tlsg if possible (#883)
When a Go program is externally linked, the external linker is responsible for picking the TLS offset. It records its decision in the runtime.tlsg symbol. Read the offset from that rather than guessing -16. This implementation causes a regression: 1.4 and earlier will no longer work.
Showing
想要评论请 注册 或 登录