Skip to content

Commit e075412

Browse files
committed
build: Stop linking morestack.S to rt
__morestack has to be linked statically. The odd calling convention on x86_64 results in the arguments to __morestack (r10 & r11) being clobbered by the dynamic linker. gcc links all the __morestack functions statically.
1 parent cd75c9c commit e075412

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

mk/rt.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ RUNTIME_CS_$(1) := \
6767

6868
RUNTIME_S_$(1) := rt/arch/$$(HOST_$(1))/_context.S \
6969
rt/arch/$$(HOST_$(1))/ccall.S \
70-
rt/arch/$$(HOST_$(1))/morestack.S \
7170
rt/arch/$$(HOST_$(1))/record_sp.S
7271

7372
RUNTIME_HDR_$(1) := rt/globals.h \

src/rt/rustrt.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
__morestack
21
chan_id_send
32
check_claims
43
debug_box

0 commit comments

Comments
 (0)