2023-03-30 07:58:50 -05:00
|
|
|
include ../tools.mk
|
2020-06-15 06:23:38 -05:00
|
|
|
|
2021-06-16 13:56:38 -05:00
|
|
|
# only-x86_64
|
|
|
|
# only-linux
|
2023-03-16 04:20:57 -05:00
|
|
|
# ignore-32bit
|
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
|