summaryrefslogtreecommitdiff
path: root/cgtypes.h
diff options
context:
space:
mode:
authorCamil Staps2016-12-01 21:29:04 +0000
committerCamil Staps2016-12-01 21:29:04 +0000
commit306d8d63917803e8bbaf3c57d0b837927de1fff6 (patch)
treef99d526c9a754d5eb4d259efed785d2ac1da1f6d /cgtypes.h
parentFix some illegal uses of sp (diff)
Fix issue with long conditional jumps (selector__m__error) by loading the address to scratch first
Diffstat (limited to 'cgtypes.h')
-rw-r--r--cgtypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgtypes.h b/cgtypes.h
index 8814f88..ba276ae 100644
--- a/cgtypes.h
+++ b/cgtypes.h
@@ -75,11 +75,13 @@ typedef struct label {
#define EA_LABEL 128
#ifdef G_POWER
# define HAS_TOC_LABELS 256
-# define FAR_CONDITIONAL_JUMP_LABEL 512
# define STRING_LABEL 1024
# define DOT_O_BEFORE_LABEL 2048
# define STUB_GENERATED 4096
#endif
+#if defined(G_POWER) || defined(THUMB2)
+# define FAR_CONDITIONAL_JUMP_LABEL 512
+#endif
#if defined (G_A64) && defined (LINUX)
# define USE_PLT_LABEL 4096
#endif