@@ -700,12 +700,12 @@ thread local storage models:
700700[cols="1,2,3"]
701701[width=70%]
702702|===
703- | Mnemonic | Model | Compiler flags
703+ | Mnemonic | Model
704704
705- | TLS LE | Local Exec | `-ftls-model=local-exec`
706- | TLS IE | Initial Exec | `-ftls-model=initial-exec`
707- | TLS LD | Local Dynamic | `-ftls-model=local-dynamic`
708- | TLS GD | Global Dynamic | `-ftls-model=global-dynamic`
705+ | TLS LE | Local Exec
706+ | TLS IE | Initial Exec
707+ | TLS LD | Local Dynamic
708+ | TLS GD | Global Dynamic
709709|===
710710
711711The program linker in the case of static TLS or the dynamic linker in the case
@@ -716,7 +716,6 @@ of dynamic TLS allocate TLS offsets for storage of thread local variables.
716716Local exec is a form of static thread local storage. This model is used
717717when static linking as the TLS offsets are resolved during program linking.
718718
719- Compiler flag:: `-ftls-model=local-exec`
720719Variable attribute:: `+__thread int i __attribute__((tls_model("local-exec")));+`
721720
722721Example assembler load and store of a thread local variable `i` using the
@@ -743,7 +742,6 @@ at load time. `dlopen` calls to libraries that use thread local storage may fail
743742when using the initial exec thread local storage model as TLS offsets must all
744743be resolved at load time. This model uses the GOT to resolve TLS offsets.
745744
746- Compiler flag:: `-ftls-model=initial-exec`
747745Variable attribute:: `+__thread int i __attribute__((tls_model("initial-exec")));+`
748746ELF flags:: DF_STATIC_TLS
749747
@@ -784,7 +782,6 @@ additionally allows libraries to be loaded and unloaded at runtime using `dlopen
784782In the global dynamic model, application code calls the dynamic linker function
785783`__tls_get_addr` to locate TLS offsets into the dynamic thread vector at runtime.
786784
787- Compiler flag:: `-ftls-model=global-dynamic`
788785Variable attribute:: `+__thread int i __attribute__((tls_model("global-dynamic")));+`
789786
790787Example assembler load and store of a thread local variable `i` using the
0 commit comments