Skip to content

Commit 027f745

Browse files
committed
---
yaml --- r: 6483 b: refs/heads/master c: 4dcb0ee h: refs/heads/master i: 6481: eed9f39 6479: 1042394 v: v3
1 parent 7f03fa1 commit 027f745

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8d7863fad045edff9d9c825b48e72dd022c6fad5
2+
refs/heads/master: 4dcb0ee0ce0c48fa2328c9c88dbbe19614cdc545

trunk/src/comp/back/link.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,11 @@ fn link_binary(sess: session::session,
633633
gcc_args += ["-lrt", "-ldl"];
634634
}
635635

636+
// Stack growth requires statically linking a __morestack function
637+
if sess.get_opts().stack_growth {
638+
gcc_args += ["-lmorestack"];
639+
}
640+
636641
gcc_args += rpath::get_rpath_flags(sess, out_filename);
637642

638643
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));

0 commit comments

Comments
 (0)