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. |
||
|---|---|---|
| .. | ||
| gdbserver_conn.go | ||
| gdbserver_unix.go | ||
| gdbserver_windows.go | ||
| gdbserver.go | ||
| rr_test.go | ||
| rr.go | ||