[x264-devel] [PATCH] x86: Export x264_stack_align

Sebastian Ramacher sramacher at debian.org
Wed Aug 29 09:51:22 CEST 2018


The function is used by the CLI since
7737e6ad4acf1058aeb0f9802e2a3ca1e0a30d29, but not exported by the shared
library.
---
Builds of the CLI using the shared library fail since
7737e6ad4acf1058aeb0f9802e2a3ca1e0a30d29 with

  /usr/bin/ld: x264.o: in function `main':
  ./x264.c:408: undefined reference to `x264_stack_align'

 common/x86/cpu-a.asm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/x86/cpu-a.asm b/common/x86/cpu-a.asm
index d94f7d54..e6966733 100644
--- a/common/x86/cpu-a.asm
+++ b/common/x86/cpu-a.asm
@@ -83,7 +83,7 @@ cglobal cpu_sfence
 ;-----------------------------------------------------------------------------
 ; intptr_t stack_align( void (*func)(void*), ... ); (up to 5 args)
 ;-----------------------------------------------------------------------------
-cglobal stack_align
+cvisible stack_align
     mov      rax, r0mp
     mov       r0, r1mp
     mov       r1, r2mp
-- 
2.19.0.rc1



More information about the x264-devel mailing list