From 590d780f20871b29fdc803bd2c74b046fd2d0f28 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 9 Sep 2013 03:55:42 +0300 Subject: [PATCH] add fixup for uncompressed jumptable --- .gitignore | 1 + Main.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ef3db36..59a1e23 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ cyclone_gen Cyclone.s cscope.out tags +tests/test_misc2.bin diff --git a/Main.cpp b/Main.cpp index 9ef8a2b..13efac2 100644 --- a/Main.cpp +++ b/Main.cpp @@ -306,7 +306,12 @@ static void PrintFramework() ot(" bx lr\n"); ltorg(); #else - ot(";@ do nothing\n"); + ot(";@ fix final jumptable entries\n"); + ot(" ldr r12,=CycloneJumpTab\n"); + ot(" add r12,r12,#0x10000*4\n"); + ot(" ldr r0,[r12,#-3*4]\n"); + ot(" str r0,[r12,#-2*4]\n"); + ot(" str r0,[r12,#-1*4]\n"); ot(" bx lr\n"); #endif ot("\n"); -- 2.39.2