Commit 566f086
Implement get_thread_pointer in PreExecuter
The PreExecuter would fail when trying to execute the intrinsic llvm.cheerp.get.thread.pointer. And since this would occur in the global constructor with priority 101, no other global constructors would run.
This commit introduces a simple fix: we return 0. The code that actually calls this intrinsic in musl then will use __dummy_thread as the thread pointer.1 parent e7dc431 commit 566f086
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1187 | 1196 | | |
1188 | 1197 | | |
1189 | 1198 | | |
| |||
0 commit comments