3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/rustc/patches/grsec.patch

25 lines
734 B
Diff
Raw Normal View History

2015-01-19 17:41:28 +00:00
diff --git a/src/test/run-make/relocation-model/Makefile b/src/test/run-make/relocation-model/Makefile
2015-12-23 23:21:35 +00:00
index b22f34f..c6489bd 100644
2015-01-19 17:41:28 +00:00
--- a/src/test/run-make/relocation-model/Makefile
+++ b/src/test/run-make/relocation-model/Makefile
2015-12-23 23:21:35 +00:00
@@ -2,9 +2,11 @@
all: others
$(RUSTC) -C relocation-model=dynamic-no-pic foo.rs
+ paxctl -czexm $(TMPDIR)/foo
2015-01-19 17:41:28 +00:00
$(call RUN,foo)
$(RUSTC) -C relocation-model=default foo.rs
+ paxctl -czexm $(TMPDIR)/foo
$(call RUN,foo)
2015-12-23 23:21:35 +00:00
$(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs
@@ -16,6 +18,7 @@ others:
else
others:
2015-01-19 17:41:28 +00:00
$(RUSTC) -C relocation-model=static foo.rs
+ paxctl -czexm $(TMPDIR)/foo
$(call RUN,foo)
2015-12-23 23:21:35 +00:00
$(RUSTC) -C relocation-model=static --crate-type=dylib foo.rs
endif