2022-08-22 19:00:00 -05:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2020-06-15 06:23:38 -05:00
|
|
|
|
2021-06-16 13:56:38 -05:00
|
|
|
# only-x86_64
|
|
|
|
# only-linux
|
|
|
|
# ignore-gnux32
|
2020-06-15 06:23:38 -05:00
|
|
|
|
|
|
|
# How to manually run this
|
2023-01-05 02:45:44 -06:00
|
|
|
# $ ./x.py test --target x86_64-unknown-linux-[musl,gnu] tests/run-make/static-pie
|
2020-06-15 06:23:38 -05:00
|
|
|
|
2021-11-01 13:38:11 -05:00
|
|
|
all: test-clang test-gcc
|
|
|
|
|
|
|
|
test-%:
|
|
|
|
if ./check_$*_version.sh; then\
|
|
|
|
${RUSTC} -Clinker=$* -Clinker-flavor=gcc --target ${TARGET} -C target-feature=+crt-static test-aslr.rs; \
|
|
|
|
! readelf -l $(call RUN_BINFILE,test-aslr) | $(CGREP) INTERP; \
|
|
|
|
readelf -l $(call RUN_BINFILE,test-aslr) | $(CGREP) DYNAMIC; \
|
|
|
|
$(call RUN,test-aslr) --test-aslr; \
|
|
|
|
fi
|