2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2021-07-13 12:14:26 +01:00
|
|
|
|
|
|
|
# only-aarch64
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c
|
|
|
|
$(AR) rcs $(TMPDIR)/libtest.a $(TMPDIR)/test.o
|
2023-04-21 18:32:17 -07:00
|
|
|
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
|
2021-07-13 12:14:26 +01: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
|
2023-04-21 18:32:17 -07:00
|
|
|
$(RUSTC) --target $(TARGET) -Z branch-protection=bti,pac-ret,leaf test.rs
|
2021-12-01 15:56:59 +00:00
|
|
|
$(call RUN,test)
|