aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorDaniel Glöckner <daniel-gl@gmx.net>2010-05-14 13:07:59 +0200
committerDaniel Glöckner <daniel-gl@gmx.net>2010-05-14 13:07:59 +0200
commit741841d863be133d4fba91933fdd83dec7a83112 (patch)
treeebb74b11be7a4ff68f87e3d73f646522815add02 /tccrun.c
parenta64727ba7d75e68d4eda5187a1e0fa02c005d70e (diff)
downloadtinycc-741841d863be133d4fba91933fdd83dec7a83112.tar.gz
tinycc-741841d863be133d4fba91933fdd83dec7a83112.tar.bz2
ARM: allow jumps > 32MB on -run
This is needed to reach tinycc's PLT from the compiled program.
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccrun.c b/tccrun.c
index f04412c..264b8a7 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -150,7 +150,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr)
if (s1->nb_errors)
return -1;
-#if defined TCC_TARGET_X86_64 && !defined TCC_TARGET_PE
+#if (defined TCC_TARGET_X86_64 || defined TCC_TARGET_ARM) && !defined TCC_TARGET_PE
s1->runtime_plt_and_got_offset = 0;
s1->runtime_plt_and_got = (char *)(mem + offset);
/* double the size of the buffer for got and plt entries
@@ -184,7 +184,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr)
set_pages_executable(ptr, length);
}
-#if defined TCC_TARGET_X86_64 && !defined TCC_TARGET_PE
+#if (defined TCC_TARGET_X86_64 || defined TCC_TARGET_ARM) && !defined TCC_TARGET_PE
set_pages_executable(s1->runtime_plt_and_got,
s1->runtime_plt_and_got_offset);
#endif