From 5af33410f6faa6c0f7d97af5b802b2608b228bc2 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Sun, 3 Dec 2023 17:32:20 +0100 Subject: Fix IBT/BTI by instrumenting function calls --- arm64/emit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arm64') diff --git a/arm64/emit.c b/arm64/emit.c index 78a0358..85b5f3d 100644 --- a/arm64/emit.c +++ b/arm64/emit.c @@ -514,6 +514,7 @@ arm64_emitfn(Fn *fn, FILE *out) if (T.apple) e->fn->lnk.align = 4; emitfnlnk(e->fn->name, &e->fn->lnk, e->f); + fputs("\thint\t#34\n", e->f); framelayout(e); if (e->fn->vararg && !T.apple) { -- cgit 1.4.1