We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916e9ce commit ff00622Copy full SHA for ff00622
tests/run-make/rust-lld-link-script-provide/main.rs
@@ -0,0 +1,7 @@
1
+#[no_mangle]
2
+fn foo() {}
3
+
4
5
+fn bar() {}
6
7
+fn main() {}
tests/run-make/rust-lld-link-script-provide/rmake.rs
@@ -0,0 +1,12 @@
+// This test ensures that the “symbol not found” error does not occur
+// when the symbols in the `PROVIDE` of the link script can be eliminated.
+// This is a regression test for #131164.
+//@ needs-rust-lld
+//@ only-x86_64-unknown-linux-gnu
8
+use run_make_support::rustc;
9
10
+fn main() {
11
+ rustc().input("main.rs").arg("-Zlinker-features=+lld").link_arg("-Tscript.t").run();
12
+}
tests/run-make/rust-lld-link-script-provide/script.t
@@ -0,0 +1 @@
+PROVIDE(foo = bar);
0 commit comments