Skip to content

Commit 1a99170

Browse files
committed
x86-64 IBT support
Need to put endbr64 instructions at beginning of helper functions. Now that we support PIE and PIC, these functions can be called indirectly through the PLT.
1 parent d367b89 commit 1a99170

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/x86_64/sysdeps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
.text; \
5858
.globl f; \
5959
.align 16; \
60-
f:
60+
f: endbr64
6161

6262
#define ENDFUNCTION(f) \
6363
.type f, @function; .size f, . - f

0 commit comments

Comments
 (0)