diff options
| author | Oneirical <manchot@videotron.ca> | 2024-05-28 11:17:17 -0400 |
|---|---|---|
| committer | Oneirical <manchot@videotron.ca> | 2024-05-29 11:35:51 -0400 |
| commit | 0697884ea970ebca67b2de41dc1d380e66fd9c2b (patch) | |
| tree | 04cfe3fbfa48f8624648bfc0e5a69e625fa02553 /tests | |
| parent | 22953b3f52a06c5b4826d455fba526c36ef8cb58 (diff) | |
| download | rust-0697884ea970ebca67b2de41dc1d380e66fd9c2b.tar.gz rust-0697884ea970ebca67b2de41dc1d380e66fd9c2b.zip | |
convert fpic to ui test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run-make/fpic/Makefile | 11 | ||||
| -rw-r--r-- | tests/run-make/fpic/hello.rs | 1 | ||||
| -rw-r--r-- | tests/ui/errors/pic-linker.rs | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/tests/run-make/fpic/Makefile b/tests/run-make/fpic/Makefile deleted file mode 100644 index d3754d17372..00000000000 --- a/tests/run-make/fpic/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# ignore-cross-compile -include ../tools.mk - -# ignore-windows -# ignore-apple - -# Test for #39529. -# `-z text` causes ld to error if there are any non-PIC sections - -all: - $(RUSTC) hello.rs -C link-args=-Wl,-z,text diff --git a/tests/run-make/fpic/hello.rs b/tests/run-make/fpic/hello.rs deleted file mode 100644 index 45590d86ba6..00000000000 --- a/tests/run-make/fpic/hello.rs +++ /dev/null @@ -1 +0,0 @@ -fn main() { } diff --git a/tests/ui/errors/pic-linker.rs b/tests/ui/errors/pic-linker.rs new file mode 100644 index 00000000000..9fea42484ed --- /dev/null +++ b/tests/ui/errors/pic-linker.rs @@ -0,0 +1,12 @@ +// `-z text` caused the linker to error if there were any non-position-independent +// code (PIC) sections. This test checks that this no longer happens. +// See https://github.com/rust-lang/rust/pull/39803 + +//@ ignore-windows +//@ ignore-macos +//@ ignore-cross-compile + +//@ compile-flags -Clink-args=-Wl,-z,text +//@ run-pass + +fn main() {} |
