Skip to content

Commit 4a2203e

Browse files
committed
Remove compiler flag from psABI
Fix #273
1 parent 966a1ac commit 4a2203e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

riscv-elf.adoc

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

711711
The 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.
716716
Local exec is a form of static thread local storage. This model is used
717717
when static linking as the TLS offsets are resolved during program linking.
718718

719-
Compiler flag:: `-ftls-model=local-exec`
720719
Variable attribute:: `+__thread int i __attribute__((tls_model("local-exec")));+`
721720

722721
Example 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
743742
when using the initial exec thread local storage model as TLS offsets must all
744743
be resolved at load time. This model uses the GOT to resolve TLS offsets.
745744

746-
Compiler flag:: `-ftls-model=initial-exec`
747745
Variable attribute:: `+__thread int i __attribute__((tls_model("initial-exec")));+`
748746
ELF flags:: DF_STATIC_TLS
749747

@@ -784,7 +782,6 @@ additionally allows libraries to be loaded and unloaded at runtime using `dlopen
784782
In 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`
788785
Variable attribute:: `+__thread int i __attribute__((tls_model("global-dynamic")));+`
789786

790787
Example assembler load and store of a thread local variable `i` using the

0 commit comments

Comments
 (0)