Commit 489488b
committed
gcc: default the Vita target to local-exec TLS
Design phase 1 says the main executable uses Local Exec, but nothing enforced
it: for a TLS symbol defined in another translation unit gcc falls back to
initial-exec, which wants a GOT entry the Vita loader never fills. Linking a
newlib with its reent in TLS produced 36 R_ARM_TLS_IE32 against _tls_errno
plus 15 R_ARM_TLS_LDO32, and vita-elf-create refused them.
CC1_SPEC only supplies the default, so -ftls-model= on the command line still
wins.
Assisted-by: Claude Opus 51 parent 4a09004 commit 489488b
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | | - | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
0 commit comments