@@ -703,12 +703,12 @@ thread local storage models:
703703[cols="1,2,3"]
704704[width=70%]
705705|===
706- | Mnemonic | Model | Compiler flags
706+ | Mnemonic | Model
707707
708- | TLS LE | Local Exec | `-ftls-model=local-exec`
709- | TLS IE | Initial Exec | `-ftls-model=initial-exec`
710- | TLS LD | Local Dynamic | `-ftls-model=local-dynamic`
711- | TLS GD | Global Dynamic | `-ftls-model=global-dynamic`
708+ | TLS LE | Local Exec
709+ | TLS IE | Initial Exec
710+ | TLS LD | Local Dynamic
711+ | TLS GD | Global Dynamic
712712|===
713713
714714The program linker in the case of static TLS or the dynamic linker in the case
@@ -719,7 +719,6 @@ of dynamic TLS allocate TLS offsets for storage of thread local variables.
719719Local exec is a form of static thread local storage. This model is used
720720when static linking as the TLS offsets are resolved during program linking.
721721
722- Compiler flag:: `-ftls-model=local-exec`
723722Variable attribute:: `+__thread int i __attribute__((tls_model("local-exec")));+`
724723
725724Example assembler load and store of a thread local variable `i` using the
@@ -746,7 +745,6 @@ at load time. `dlopen` calls to libraries that use thread local storage may fail
746745when using the initial exec thread local storage model as TLS offsets must all
747746be resolved at load time. This model uses the GOT to resolve TLS offsets.
748747
749- Compiler flag:: `-ftls-model=initial-exec`
750748Variable attribute:: `+__thread int i __attribute__((tls_model("initial-exec")));+`
751749ELF flags:: DF_STATIC_TLS
752750
@@ -787,7 +785,6 @@ additionally allows libraries to be loaded and unloaded at runtime using `dlopen
787785In the global dynamic model, application code calls the dynamic linker function
788786`__tls_get_addr` to locate TLS offsets into the dynamic thread vector at runtime.
789787
790- Compiler flag:: `-ftls-model=global-dynamic`
791788Variable attribute:: `+__thread int i __attribute__((tls_model("global-dynamic")));+`
792789
793790Example assembler load and store of a thread local variable `i` using the
0 commit comments