runtime: do not put scheduler and GC code in the same section
This allows dead code elimination and avoids linker errors with -scheduler=leaking.
Этот коммит содержится в:
родитель
efdb2e852e
коммит
f00bb63330
2 изменённых файлов: 2 добавлений и 0 удалений
|
@ -188,6 +188,7 @@ tinygo_switchToScheduler:
|
||||||
// Return into the scheduler, as if tinygo_switchToTask was a regular call.
|
// Return into the scheduler, as if tinygo_switchToTask was a regular call.
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.section .text.tinygo_scanCurrentStack
|
||||||
.global tinygo_scanCurrentStack
|
.global tinygo_scanCurrentStack
|
||||||
.type tinygo_scanCurrentStack, %function
|
.type tinygo_scanCurrentStack, %function
|
||||||
tinygo_scanCurrentStack:
|
tinygo_scanCurrentStack:
|
||||||
|
|
|
@ -112,6 +112,7 @@ tinygo_swapTask:
|
||||||
pop {pc}
|
pop {pc}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
.section .text.tinygo_scanCurrentStack
|
||||||
.global tinygo_scanCurrentStack
|
.global tinygo_scanCurrentStack
|
||||||
.type tinygo_scanCurrentStack, %function
|
.type tinygo_scanCurrentStack, %function
|
||||||
tinygo_scanCurrentStack:
|
tinygo_scanCurrentStack:
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче