Skip to content

Commit b26a386

Browse files
committed
[cli/trampolines] Fix section directive for windows trampolines
By naming the section `text` instead of `.text` these sections were mapped into memory without the executable bit set, causing segfaults when attempting to use any trampolines on Windows.
1 parent 144f781 commit b26a386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/trampolines/trampolines_x86_64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
.endef
1515
#define EXPORT(name) .section .drectve,"r"; \
1616
.ascii " -export:"#name""; \
17-
.section text
17+
.section .text
1818
#define SEH_START1(name) .seh_proc name
1919
#define SEH_START2() .seh_endprologue
2020
#define SEH_END() .seh_endproc

0 commit comments

Comments
 (0)