From a913ee6082af6257416bce04e0e5c87894d6bff3 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 3 Apr 2014 17:59:41 +0200 Subject: [PATCH] x86-64: Use correct ELF values The x86-64 uses different segment alignment (2MB) and a different start address. --- x86_64-gen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86_64-gen.c b/x86_64-gen.c index 9a9221d0..eb201c8a 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -112,8 +112,8 @@ enum { #define R_JMP_SLOT R_X86_64_JUMP_SLOT #define R_COPY R_X86_64_COPY -#define ELF_START_ADDR 0x08048000 -#define ELF_PAGE_SIZE 0x1000 +#define ELF_START_ADDR 0x400000 +#define ELF_PAGE_SIZE 0x200000 /******************************************************/ #else /* ! TARGET_DEFS_ONLY */