fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1# Check for GNU Property Note 2 3include ../tools.mk 4 5# How to run this 6# python3 x.py test --target x86_64-unknown-linux-gnu tests/run-make/branch-protection-check-IBT/ 7 8# only-x86_64 9 10all: 11ifeq ($(filter x86,$(LLVM_COMPONENTS)),x86_64) 12 $(RUSTC) --target x86_64-unknown-linux-gnu -Z cf-protection=branch -L$(TMPDIR) -C link-args='-nostartfiles' -C save-temps ./main.rs -o $(TMPDIR)/rsmain 13 readelf -nW $(TMPDIR)/rsmain | $(CGREP) -e ".note.gnu.property" 14endif 15