summaryrefslogtreecommitdiff
path: root/src/Initialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Initialize.c')
-rw-r--r--src/Initialize.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Initialize.c b/src/Initialize.c
index 9783deb..61c8575 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -245,11 +245,20 @@ void _XtInherit(void)
* cygwin-xfree: http://www.cygwin.com/ml/cygwin-xfree/2003-10/msg00000.html
*/
+#ifdef __x86_64__
+asm (".section .trampoline, \"dwx\" \n\
+ .globl _XtInherit \n\
+ _XtInherit: \n\
+ jmp *_y(%rip) \n\
+_y: .quad __XtInherit \n\
+ .text \n");
+#else
asm (".data\n\
.globl __XtInherit \n\
__XtInherit: jmp *_y \n\
_y: .long ___XtInherit \n\
.text \n");
+#endif
#define _XtInherit __XtInherit
#endif