// This shared object tests TPREL relocations in the dynamic linker. It's always // part of static TLS.
// For accesses to these variables, the bfd and lld linkers generate a TPREL // relocation with no symbol but a non-zero addend.
__attribute__((tls_model("initial-exec"))) static __thread int tls_var_1 = 3;
__attribute__((tls_model("initial-exec"))) static __thread int tls_var_2 = 7;
__attribute__((tls_model("initial-exec"), weak)) extern"C" __thread int missing_weak_tls;
extern"C"int* missing_weak_tls_addr() { // The dynamic linker should resolve a TPREL relocation to this symbol to 0, // which this function adds to the thread pointer. return &missing_weak_tls;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.