aboutsummaryrefslogtreecommitdiff
path: root/arm-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm-link.c')
-rw-r--r--arm-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm-link.c b/arm-link.c
index 606f40e..aee35af 100644
--- a/arm-link.c
+++ b/arm-link.c
@@ -190,7 +190,7 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t
if (x & 0x800000)
x -= 0x1000000;
x <<= 2;
- blx_avail = (TCC_ARM_VERSION >= 5);
+ blx_avail = (TCC_CPU_VERSION >= 5);
is_thumb = val & 1;
is_bl = (*(unsigned *) ptr) >> 24 == 0xeb;
is_call = (type == R_ARM_CALL || (type == R_ARM_PC24 && is_bl));