This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit af443abe99cfac2ad0ac33dbe029636092867c8b
Author:     Ramiro Polla <[email protected]>
AuthorDate: Tue Mar 31 17:25:12 2026 +0800
Commit:     Ramiro Polla <[email protected]>
CommitDate: Tue Mar 31 11:48:52 2026 +0000

    aarch64: Add support for indirect branch targets in the function macro
    
    The function macro emits AARCH64_VALID_CALL_TARGET for exported symbols,
    marking them as valid destinations for indirect _calls_. Functions that
    are reached by indirect _branches_ (i.e. tail-call dispatch chains
    where the link register is not set) require AARCH64_VALID_JUMP_TARGET
    instead.
    
    This commit adds a "jumpable" parameter to the function macro that, when
    set, emits AARCH64_VALID_JUMP_TARGET instead of AARCH64_VALID_CALL_TARGET.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Ramiro Polla <[email protected]>
---
 libavutil/aarch64/asm.S | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S
index 00c07058e8..d2f2192e0b 100644
--- a/libavutil/aarch64/asm.S
+++ b/libavutil/aarch64/asm.S
@@ -256,7 +256,7 @@ DISABLE_SME2
         .popsection
 #endif
 
-.macro  function name, export=0, align=4
+.macro  function name, export=0, jumpable=0, align=4
     .macro endfunc
 ELF     .size   \name, . - \name
 FUNC    .endfunc
@@ -269,7 +269,11 @@ FUNC    .endfunc
 ELF     .type   EXTERN_ASM\name, %function
 FUNC    .func   EXTERN_ASM\name
 EXTERN_ASM\name:
+    .if \jumpable
+        AARCH64_VALID_JUMP_TARGET
+    .else
         AARCH64_VALID_CALL_TARGET
+    .endif
     .else
 ELF     .type   \name, %function
 FUNC    .func   \name

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to