Skip to content

Commit ee76822

Browse files
aykevldeadprogram
authored andcommitted
arm64: remove unnecessary .section directive
This directive caused the code to be put in a non-executable area on Windows which caused a segmentation fault. This patch fixes the issue by removing `.section` directives, fixing windows/arm64 support.
1 parent b9bf0aa commit ee76822

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/internal/task/task_stack_arm64.S

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.global _tinygo_startTask
33
_tinygo_startTask:
44
#else
5-
.section .text.tinygo_startTask
65
.global tinygo_startTask
76
tinygo_startTask:
87
#endif

src/runtime/asm_arm64.S

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.global _tinygo_scanCurrentStack
33
_tinygo_scanCurrentStack:
44
#else
5-
.section .text.tinygo_scanCurrentStack
65
.global tinygo_scanCurrentStack
76
tinygo_scanCurrentStack:
87
#endif
@@ -39,7 +38,6 @@ tinygo_scanCurrentStack:
3938
.global _tinygo_longjmp
4039
_tinygo_longjmp:
4140
#else
42-
.section .text.tinygo_longjmp
4341
.global tinygo_longjmp
4442
tinygo_longjmp:
4543
#endif

0 commit comments

Comments
 (0)