2021-07-13 06:14:26 -05:00
|
|
|
-include ../tools.mk
|
|
|
|
|
|
|
|
# only-aarch64
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c
|
|
|
|
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
|
2021-12-01 09:56:59 -06:00
|
|
|
$(RUSTC) -Z branch-protection=bti,pac-ret,leaf test.rs
|
2021-07-13 06:14:26 -05:00
|
|
|
$(call RUN,test)
|
|
|
|
|
|
|
|
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c -mbranch-protection=bti+pac-ret+leaf
|
|
|
|
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
|
2021-12-01 09:56:59 -06:00
|
|
|
$(RUSTC) -Z branch-protection=bti,pac-ret,leaf test.rs
|
|
|
|
$(call RUN,test)
|