blob: 1d3cc82138927a1018c97a10d2814b05814a6602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
-include ../../run-make-fulldeps/tools.mk
# only-x86_64-unknown-linux-musl
# How to manually run this
# $ ./x.py test --target x86_64-unknown-linux-musl src/test/run-make/static-pie
all:
$(RUSTC) --target $(TARGET) -C target-feature=+crt-static test-aslr.rs
# Check that no dynamic interpreter is set
! readelf -l $(call RUN_BINFILE,test-aslr) | $(CGREP) INTERP
# Check that we have a dynamic executable
readelf -l $(call RUN_BINFILE,test-aslr) | $(CGREP) DYNAMIC
# Check for address space layout randomization
$(call RUN,test-aslr) --test-aslr
|