summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2013-06-24 14:57:32 +0000
committerJohn van Groningen2013-06-24 14:57:32 +0000
commit698a3ad5ed31237b1407ee55f86160a4ba8fa7a3 (patch)
tree3dfebe9d57a010cbbcfe7a04e30690bb43d47697
parentadd ABC instruction load_si32 for AMD64 (diff)
use pc relative lea instruction for descriptors on 64 bit linux
-rw-r--r--cgawas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgawas.c b/cgawas.c
index 6c89066..eb9f62f 100644
--- a/cgawas.c
+++ b/cgawas.c
@@ -728,7 +728,7 @@ static void w_as_lea_descriptor (LABEL *label,int arity,int register_1)
else
fprintf (assembly_file,"-%d",-arity);
-#ifdef MACH_O64
+#if defined (MACH_O64) || defined (LINUX)
fprintf (assembly_file,"%s",intel_asm ? "[rip]" : "(%rip)");
#endif