From 5dadff3de553b0dae46cca233c751ed8b6853da4 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Sun, 19 Jul 2009 06:42:23 +0900 Subject: x86-64: Fix stab debug information. We need 32bit relocations for code and 64bit for debug info. Introduce a new macro R_DATA_PTR to distinguish the two usages. --- x86_64-gen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'x86_64-gen.c') diff --git a/x86_64-gen.c b/x86_64-gen.c index 1739e95..e22de5c 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -91,7 +91,8 @@ const int reg_classes[NB_REGS] = { #define EM_TCC_TARGET EM_X86_64 /* relocation type for 32 bit data relocation */ -#define R_DATA_32 R_X86_64_64 +#define R_DATA_32 R_X86_64_32 +#define R_DATA_PTR R_X86_64_64 #define R_JMP_SLOT R_X86_64_JUMP_SLOT #define R_COPY R_X86_64_COPY -- cgit v1.3.1