Commit 00afc44
authored
Fix MIPS __start linker error with default relocation model (#171)
Turns out `la $t9, {entry}` generates a CALL16 relocation in PIC
mode, and CALL16 needs the target to be a global symbol. Since
`entry` is pub(super), the linker rightfully complains. Swapped
to lui/addiu which use HI16/LO16 and don't care about visibility.1 parent 6aff4f5 commit 00afc44
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments