@@ -414,23 +414,16 @@ const (
414414 R_CALLPOWER
415415 R_CONST
416416 R_PCREL
417- // R_TLS (only used on arm currently, and not on android and darwin where tlsg is
418- // a regular variable) resolves to data needed to access the thread-local g. It is
419- // interpreted differently depending on toolchain flags to implement either the
420- // "local exec" or "inital exec" model for tls access.
421- // TODO(mwhudson): change to use R_TLS_LE or R_TLS_IE as appropriate, not having
422- // R_TLS do double duty.
423- R_TLS
424- // R_TLS_LE (only used on 386 and amd64 currently) resolves to the offset of the
425- // thread-local g from the thread local base and is used to implement the "local
426- // exec" model for tls access (r.Sym is not set by the compiler for this case but
427- // is set to Tlsg in the linker when externally linking).
417+ // R_TLS_LE, used on 386, amd64, and ARM, resolves to the offset of the
418+ // thread-local symbol from the thread local base and is used to implement the
419+ // "local exec" model for tls access (r.Sym is not set on intel platforms but is
420+ // set to a TLS symbol -- runtime.tlsg -- in the linker when externally linking).
428421 R_TLS_LE
429- // R_TLS_IE (only used on 386 and amd64 currently) resolves to the PC-relative
430- // offset to a GOT slot containing the offset the thread-local g from the thread
431- // local base and is used to implemented the "initial exec" model for tls access
432- // (r.Sym is not set by the compiler for this case but is set to Tlsg in the
433- // linker when externally linking).
422+ // R_TLS_IE, used 386, amd64, and ARM resolves to the PC-relative offset to a GOT
423+ // slot containing the offset from the thread-local symbol from the thread local
424+ // base and is used to implemented the "initial exec" model for tls access (r.Sym
425+ // is not set on intel platforms but is set to a TLS symbol -- runtime.tlsg -- in
426+ // the linker when externally linking).
434427 R_TLS_IE
435428 R_GOTOFF
436429 R_PLT0
@@ -505,7 +498,6 @@ type Link struct {
505498 Sym_divu * LSym
506499 Sym_mod * LSym
507500 Sym_modu * LSym
508- Tlsg * LSym
509501 Plan9privates * LSym
510502 Curp * Prog
511503 Printp * Prog
0 commit comments