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. |
||
|---|---|---|
| .. | ||
| config | ||
| dwarf | ||
| proc | ||
| terminal | ||
| version | ||