[x265] [PATCH 08 of 13] x86inc: Support creating global symbols from local labels
vignesh at multicorewareinc.com
vignesh at multicorewareinc.com
Fri Jul 6 11:18:08 CEST 2018
# HG changeset patch
# User Vignesh Vijayakumar<vignesh at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-08.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180706/fff3b6f3/attachment.bin>
More information about the x265-devel
mailing list