OSDN Git Service

disable early debug code if the arch relies on certain values (like load_addr) which...
authorMike Frysinger <vapier@gentoo.org>
Tue, 9 Aug 2005 22:43:02 +0000 (22:43 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Aug 2005 22:43:02 +0000 (22:43 -0000)
ldso/include/dl-string.h
ldso/ldso/dl-startup.c

index 8e35e6a..57f05bd 100644 (file)
@@ -274,6 +274,7 @@ static __always_inline char * _dl_simple_ltoahex(char * local, unsigned long i)
                      || defined(__sh__) ||  defined(__powerpc__)
 # define CONSTANT_STRING_GOT_FIXUP(X) \
        if ((X) < (const char *) load_addr) (X) += load_addr
+# define NO_EARLY_SEND_STDERR
 #else
 # define CONSTANT_STRING_GOT_FIXUP(X)
 #endif
index 3c6ce48..c2686c7 100644 (file)
@@ -136,12 +136,14 @@ static void * __attribute_used__ _dl_start(unsigned long args)
        aux_dat += argc;                        /* Skip over the argv pointers */
        aux_dat++;                                      /* Skip over NULL at end of argv */
        envp = (char **) aux_dat;
+#ifndef NO_EARLY_SEND_STDERR
        SEND_STDERR_DEBUG("argc=");
        SEND_NUMBER_STDERR_DEBUG(argc, 0);
        SEND_STDERR_DEBUG(" argv=");
        SEND_ADDRESS_STDERR_DEBUG(argv, 0);
        SEND_STDERR_DEBUG(" envp=");
        SEND_ADDRESS_STDERR_DEBUG(envp, 1);
+#endif
        while (*aux_dat)
                aux_dat++;                              /* Skip over the envp pointers */
        aux_dat++;                                      /* Skip over NULL at end of envp */