OSDN Git Service

sparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso
authoraustinf <austinf@localhost>
Sat, 11 Apr 2009 00:08:47 +0000 (00:08 -0000)
committeraustinf <austinf@localhost>
Sat, 11 Apr 2009 00:08:47 +0000 (00:08 -0000)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
ldso/include/dl-string.h

index 1a47e31..01ab50e 100644 (file)
@@ -286,7 +286,7 @@ static __always_inline char * _dl_simple_ltoahex(char *local, unsigned long i)
  * 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(__avr32__) || defined(__xtensa__) || defined(__sparc__)
 # define CONSTANT_STRING_GOT_FIXUP(X) \
        if ((X) < (const char *) load_addr) (X) += load_addr
 # define NO_EARLY_SEND_STDERR