From 306d8d63917803e8bbaf3c57d0b837927de1fff6 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 1 Dec 2016 21:29:04 +0000 Subject: Fix issue with long conditional jumps (selector__m__error) by loading the address to scratch first --- cgtypes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cgtypes.h') 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 -- cgit v1.2.3