Add LABEL_MANGLE() to export label symbols from inside asm blocks.
Originally committed as revision 18934 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e9356be524
commit
7d9beec775
@ -99,6 +99,9 @@
|
|||||||
# define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
|
# define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Use to export labels from asm. */
|
||||||
|
#define LABEL_MANGLE(a) EXTERN_PREFIX #a
|
||||||
|
|
||||||
// Use rip-relative addressing if compiling PIC code on x86-64.
|
// Use rip-relative addressing if compiling PIC code on x86-64.
|
||||||
#if ARCH_X86_64 && defined(PIC)
|
#if ARCH_X86_64 && defined(PIC)
|
||||||
# define LOCAL_MANGLE(a) #a "(%%rip)"
|
# define LOCAL_MANGLE(a) #a "(%%rip)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user