Skip to content

Commit b0717e1

Browse files
authored
Merge pull request #276 from riscv-non-isa/remove-c-flags
Remove compiler flag from psABI
2 parents 573e273 + 4a2203e commit b0717e1

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
@@ -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

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

722-
Compiler flag:: `-ftls-model=local-exec`
723722
Variable attribute:: `+__thread int i __attribute__((tls_model("local-exec")));+`
724723

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

749-
Compiler flag:: `-ftls-model=initial-exec`
750748
Variable attribute:: `+__thread int i __attribute__((tls_model("initial-exec")));+`
751749
ELF flags:: DF_STATIC_TLS
752750

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

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

0 commit comments

Comments
 (0)