File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
compiler/rustc_target/src/spec
src/test/run-make/static-pie Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pub fn target() -> Target {
77 base. pre_link_args . entry ( LinkerFlavor :: Gcc ) . or_default ( ) . push ( "-m64" . to_string ( ) ) ;
88 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
99 base. stack_probes = StackProbeType :: Call ;
10+ base. static_position_independent_executables = true ;
1011 base. supported_sanitizers = SanitizerSet :: ADDRESS
1112 | SanitizerSet :: CFI
1213 | SanitizerSet :: LEAK
Original file line number Diff line number Diff line change 11-include ../../run-make-fulldeps/tools.mk
22
3- # only-x86_64-unknown-linux-musl
3+ # only-x86_64
4+ # only-linux
5+ # ignore-gnux32
46
57# How to manually run this
6- # $ ./x.py test --target x86_64-unknown-linux-musl src/test/run-make/static-pie
8+ # $ ./x.py test --target x86_64-unknown-linux-[ musl,gnu] src/test/run-make/static-pie
79
810all :
911 $(RUSTC ) --target $(TARGET ) -C target-feature=+crt-static test-aslr.rs
You can’t perform that action at this time.
0 commit comments