# HG changeset patch # User Vignesh Vijayakumar<vign...@multicorewareinc.com> # Date 1517546394 -19800 # Fri Feb 02 10:09:54 2018 +0530 # Node ID 801c3fde5a56db5c33e2512a68db5ae6297f451c # Parent 57f5256f729bb0432ace18ba2f229d99499df24e x86inc: Support creating global symbols from local labels
On ELF platforms such symbols needs to be flagged as functions with the correct visibility to please certain linkers in some scenarios. diff -r 57f5256f729b -r 801c3fde5a56 source/common/x86/x86inc.asm --- a/source/common/x86/x86inc.asm Fri Feb 02 10:07:53 2018 +0530 +++ b/source/common/x86/x86inc.asm Fri Feb 02 10:09:54 2018 +0530 @@ -728,6 +728,16 @@ %endif %endmacro +; Create a global symbol from a local label with the correct name mangling and type +%macro cglobal_label 1 + %if FORMAT_ELF + global current_function %+ %1:function hidden + %else + global current_function %+ %1 + %endif + %1: +%endmacro + %macro cextern 1 %xdefine %1 mangle(private_prefix %+ _ %+ %1) CAT_XDEFINE cglobaled_, %1, 1
# HG changeset patch # User Vignesh Vijayakumar<vign...@multicorewareinc.com> # Date 1517546394 -19800 # Fri Feb 02 10:09:54 2018 +0530 # Node ID 801c3fde5a56db5c33e2512a68db5ae6297f451c # Parent 57f5256f729bb0432ace18ba2f229d99499df24e x86inc: Support creating global symbols from local labels On ELF platforms such symbols needs to be flagged as functions with the correct visibility to please certain linkers in some scenarios. diff -r 57f5256f729b -r 801c3fde5a56 source/common/x86/x86inc.asm --- a/source/common/x86/x86inc.asm Fri Feb 02 10:07:53 2018 +0530 +++ b/source/common/x86/x86inc.asm Fri Feb 02 10:09:54 2018 +0530 @@ -728,6 +728,16 @@ %endif %endmacro +; Create a global symbol from a local label with the correct name mangling and type +%macro cglobal_label 1 + %if FORMAT_ELF + global current_function %+ %1:function hidden + %else + global current_function %+ %1 + %endif + %1: +%endmacro + %macro cextern 1 %xdefine %1 mangle(private_prefix %+ _ %+ %1) CAT_XDEFINE cglobaled_, %1, 1
_______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel