We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f03fa1 commit 027f745Copy full SHA for 027f745
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 8d7863fad045edff9d9c825b48e72dd022c6fad5
+refs/heads/master: 4dcb0ee0ce0c48fa2328c9c88dbbe19614cdc545
trunk/src/comp/back/link.rs
@@ -633,6 +633,11 @@ fn link_binary(sess: session::session,
633
gcc_args += ["-lrt", "-ldl"];
634
}
635
636
+ // Stack growth requires statically linking a __morestack function
637
+ if sess.get_opts().stack_growth {
638
+ gcc_args += ["-lmorestack"];
639
+ }
640
+
641
gcc_args += rpath::get_rpath_flags(sess, out_filename);
642
643
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));
0 commit comments