runtime: do not put scheduler and GC code in the same section

This allows dead code elimination and avoids linker errors with
-scheduler=leaking.
This commit is contained in:
Ayke van Laethem
2020-04-15 15:11:39 +02:00
committed by Ron Evans
parent efdb2e852e
commit f00bb63330
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -188,6 +188,7 @@ tinygo_switchToScheduler:
// Return into the scheduler, as if tinygo_switchToTask was a regular call.
ret
.section .text.tinygo_scanCurrentStack
.global tinygo_scanCurrentStack
.type tinygo_scanCurrentStack, %function
tinygo_scanCurrentStack:
+1
View File
@@ -112,6 +112,7 @@ tinygo_swapTask:
pop {pc}
#endif
.section .text.tinygo_scanCurrentStack
.global tinygo_scanCurrentStack
.type tinygo_scanCurrentStack, %function
tinygo_scanCurrentStack: