aboutsummaryrefslogtreecommitdiff
path: root/ldso/include/dl-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/include/dl-string.h')
-rw-r--r--ldso/include/dl-string.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index 01ab50ec9..4c5cfe19e 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -284,9 +284,10 @@ static __always_inline char * _dl_simple_ltoahex(char *local, unsigned long i)
/* On some arches constant strings are referenced through the GOT.
* This requires that load_addr must already be defined... */
-#if defined(mc68000) || defined(__arm__) || defined(__thumb__) || \
- defined(__mips__) || defined(__sh__) || defined(__powerpc__) || \
- defined(__avr32__) || defined(__xtensa__) || defined(__sparc__)
+#if (defined(mc68000) || defined(__arm__) || defined(__thumb__) || \
+ defined(__mips__) || defined(__sh__) || defined(__powerpc__) || \
+ defined(__avr32__) || defined(__xtensa__) || defined(__sparc__)) \
+ && !defined(__FDPIC__)
# define CONSTANT_STRING_GOT_FIXUP(X) \
if ((X) < (const char *) load_addr) (X) += load_addr
# define NO_EARLY_SEND_STDERR