Implement arm64 BTI support.

ok Brad (maintainer)
master
kettenis 2023-06-17 22:18:31 +00:00
parent 331fdc98b6
commit 8a09c347ed
2 changed files with 12 additions and 3 deletions

View File

@ -3,7 +3,7 @@ COMMENT= free H.265/HEVC encoder
VER= 3.5
DISTNAME= x265_${VER}
PKGNAME= x265-${VER}
REVISION= 1
REVISION= 2
CATEGORIES= multimedia
MASTER_SITES= https://bitbucket.org/multicoreware/x265_git/downloads/

View File

@ -6,7 +6,7 @@
Index: source/common/aarch64/asm.S
--- source/common/aarch64/asm.S.orig
+++ source/common/aarch64/asm.S
@@ -25,22 +25,34 @@
@@ -25,23 +25,35 @@
#ifdef PREFIX
#define EXTERN_ASM _
@ -39,7 +39,16 @@ Index: source/common/aarch64/asm.S
+#define FUNC #
+#else
#define FUNC @
+#endif
#endif
+#endif
.macro function name, export=1
.macro endfunc
@@ -56,6 +68,7 @@ ELF .hidden EXTERN_ASM\name
ELF .type EXTERN_ASM\name, %function
FUNC .func EXTERN_ASM\name
EXTERN_ASM\name:
+ bti c
.else
ELF .hidden \name
ELF .type \name, %function