aboutsummaryrefslogtreecommitdiff
path: root/devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm')
-rw-r--r--devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm b/devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm
new file mode 100644
index 000000000000..cdb5a8a7e525
--- /dev/null
+++ b/devel/electron30/files/patch-third__party_ffmpeg_libavutil_x86_x86inc.asm
@@ -0,0 +1,23 @@
+--- third_party/ffmpeg/libavutil/x86/x86inc.asm.orig 2024-02-21 00:21:25 UTC
++++ third_party/ffmpeg/libavutil/x86/x86inc.asm
+@@ -53,6 +53,12 @@
+ %endif
+ %endif
+
++%if ARCH_X86_64
++ %define _CET_ENDBR endbr64
++%else
++ %define _CET_ENDBR
++%endif
++
+ %define WIN64 0
+ %define UNIX64 0
+ %if ARCH_X86_64
+@@ -778,6 +784,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg,
+ %endif
+ align function_align
+ %2:
++ _CET_ENDBR
+ RESET_MM_PERMUTATION ; needed for x86-64, also makes disassembly somewhat nicer
+ %xdefine rstk rsp ; copy of the original stack pointer, used when greater alignment than the known stack alignment is required
+ %assign stack_offset 0 ; stack pointer offset relative to the return address