summary refs log tree commit diff
path: root/arm64
diff options
context:
space:
mode:
authorTobias Heider <me@tobhe.de>2023-12-03 17:32:20 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2023-12-30 15:59:25 +0100
commit5af33410f6faa6c0f7d97af5b802b2608b228bc2 (patch)
treed1cc0a83543d529898949b85e54003d867234722 /arm64
parent00501eeb6ee3a59cc2aa5f78c6569b8d1a3dae49 (diff)
downloadroux-5af33410f6faa6c0f7d97af5b802b2608b228bc2.tar.gz
Fix IBT/BTI by instrumenting function calls
Diffstat (limited to 'arm64')
-rw-r--r--arm64/emit.c1
1 files changed, 1 insertions, 0 deletions
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) {