Index: simd/x86_64/jidctint-avx2.asm
--- simd/x86_64/jidctint-avx2.asm.orig
+++ simd/x86_64/jidctint-avx2.asm
@@ -282,6 +282,7 @@ PW_1_NEG1                  times 8  dw  1
     GLOBAL_FUNCTION(jsimd_idct_islow_avx2)
 
 EXTN(jsimd_idct_islow_avx2):
+    _endbr64
     push        rbp
     mov         rbp, rsp                     ; rbp = aligned rbp
     push_xmm    4
