فهرست منبع

change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when doing double negatives

Mike Frysinger 16 سال پیش
والد
کامیت
3ceb3bcb76
30فایلهای تغییر یافته به همراه33 افزوده شده و 39 حذف شده
  1. 1 7
      include/libc-symbols.h
  2. 3 3
      ldso/include/dl-defs.h
  3. 2 2
      ldso/libdl/libdl.c
  4. 1 1
      libc/sysdeps/linux/alpha/bits/uClibc_arch_features.h
  5. 1 1
      libc/sysdeps/linux/arm/bits/uClibc_arch_features.h
  6. 1 1
      libc/sysdeps/linux/avr32/bits/uClibc_arch_features.h
  7. 1 1
      libc/sysdeps/linux/bfin/bits/uClibc_arch_features.h
  8. 1 1
      libc/sysdeps/linux/common/bits/uClibc_arch_features.h
  9. 1 1
      libc/sysdeps/linux/cris/bits/uClibc_arch_features.h
  10. 1 1
      libc/sysdeps/linux/e1/bits/uClibc_arch_features.h
  11. 1 1
      libc/sysdeps/linux/frv/bits/uClibc_arch_features.h
  12. 1 1
      libc/sysdeps/linux/h8300/bits/uClibc_arch_features.h
  13. 1 1
      libc/sysdeps/linux/hppa/bits/uClibc_arch_features.h
  14. 1 1
      libc/sysdeps/linux/i386/bits/uClibc_arch_features.h
  15. 1 1
      libc/sysdeps/linux/i960/README
  16. 1 1
      libc/sysdeps/linux/i960/bits/uClibc_arch_features.h
  17. 1 1
      libc/sysdeps/linux/ia64/bits/uClibc_arch_features.h
  18. 1 1
      libc/sysdeps/linux/m68k/bits/uClibc_arch_features.h
  19. 1 1
      libc/sysdeps/linux/microblaze/bits/uClibc_arch_features.h
  20. 1 1
      libc/sysdeps/linux/mips/bits/uClibc_arch_features.h
  21. 1 1
      libc/sysdeps/linux/nios/bits/uClibc_arch_features.h
  22. 1 1
      libc/sysdeps/linux/nios2/bits/uClibc_arch_features.h
  23. 1 1
      libc/sysdeps/linux/powerpc/bits/uClibc_arch_features.h
  24. 1 1
      libc/sysdeps/linux/sh/bits/uClibc_arch_features.h
  25. 1 1
      libc/sysdeps/linux/sh64/bits/uClibc_arch_features.h
  26. 1 1
      libc/sysdeps/linux/sparc/bits/uClibc_arch_features.h
  27. 1 1
      libc/sysdeps/linux/v850/bits/uClibc_arch_features.h
  28. 1 1
      libc/sysdeps/linux/vax/bits/uClibc_arch_features.h
  29. 1 1
      libc/sysdeps/linux/x86_64/bits/uClibc_arch_features.h
  30. 1 1
      libc/sysdeps/linux/xtensa/bits/uClibc_arch_features.h

+ 1 - 7
include/libc-symbols.h

@@ -82,12 +82,6 @@
 # define IS_IN_libc 1
 #endif
 
-#ifdef __UCLIBC_NO_UNDERSCORES__
-# define NO_UNDERSCORES
-#else
-# undef NO_UNDERSCORES
-#endif
-
 #ifdef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 # define HAVE_ASM_SET_DIRECTIVE
 #else
@@ -124,7 +118,7 @@
 
 #undef C_SYMBOL_NAME
 #ifndef C_SYMBOL_NAME
-# ifdef NO_UNDERSCORES
+# ifndef __UCLIBC_UNDERSCORES__
 #  define C_SYMBOL_NAME(name) name
 # else
 #  define C_SYMBOL_NAME(name) _##name

+ 3 - 3
ldso/include/dl-defs.h

@@ -202,10 +202,10 @@ typedef struct {
 # define DL_MALLOC_ALIGN (__WORDSIZE / 8)
 #endif
 
-#ifdef __UCLIBC_NO_UNDERSCORES__
-#define __C_SYMBOL_PREFIX__ ""
+#ifdef __UCLIBC_UNDERSCORES__
+# define __C_SYMBOL_PREFIX__ "_"
 #else
-#define __C_SYMBOL_PREFIX__ "_"
+# define __C_SYMBOL_PREFIX__ ""
 #endif
 
 /* Define this if you want to modify the VALUE returned by

+ 2 - 2
ldso/libdl/libdl.c

@@ -447,7 +447,7 @@ void *dlsym(void *vhandle, const char *name)
 	struct dyn_elf *rpnt;
 	void *ret;
 	/* Nastiness to support underscore prefixes.  */
-#ifndef __UCLIBC_NO_UNDERSCORES__
+#ifdef __UCLIBC_UNDERSCORES__
 	char tmp_buf[80];
 	char *name2 = tmp_buf;
 	size_t nlen = strlen (name) + 1;
@@ -508,7 +508,7 @@ void *dlsym(void *vhandle, const char *name)
 	if (!ret)
 		_dl_error_number = LD_NO_SYMBOL;
 out:
-#ifndef __UCLIBC_NO_UNDERSCORES__
+#ifdef __UCLIBC_UNDERSCORES__
 	if (name2 != tmp_buf)
 		free (name2);
 #endif

+ 1 - 1
libc/sysdeps/linux/alpha/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #define __UCLIBC_SLIGHTLY_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #undef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/arm/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #define __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/avr32/bits/uClibc_arch_features.h

@@ -22,7 +22,7 @@
 #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/bfin/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#undef __UCLIBC_NO_UNDERSCORES__
+#define __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/common/bits/uClibc_arch_features.h

@@ -24,7 +24,7 @@
 #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/cris/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #define __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/e1/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/frv/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/h8300/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#undef __UCLIBC_NO_UNDERSCORES__
+#define __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/hppa/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/i386/bits/uClibc_arch_features.h

@@ -22,7 +22,7 @@
 #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/i960/README

@@ -16,7 +16,7 @@ prepended underscore
 --------------------
 
 As the i960 compiler prepends an underscore to symbols, it is critical that
-bits/uClibc_arch_features.h undefines __UCLIBC_NO_UNDERSCORES__
+bits/uClibc_arch_features.h defines __UCLIBC_UNDERSCORES__
 to make sure that underscores are applied to symbol names when needed.
 
 

+ 1 - 1
libc/sysdeps/linux/i960/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #define __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#undef __UCLIBC_NO_UNDERSCORES__
+#define __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/ia64/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/m68k/bits/uClibc_arch_features.h

@@ -25,7 +25,7 @@
 #define __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/microblaze/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#undef __UCLIBC_NO_UNDERSCORES__
+#define __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/mips/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #undef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/nios/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/nios2/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/powerpc/bits/uClibc_arch_features.h

@@ -22,7 +22,7 @@
 #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/sh/bits/uClibc_arch_features.h

@@ -25,7 +25,7 @@
 #define __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/sh64/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/sparc/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/v850/bits/uClibc_arch_features.h

@@ -19,7 +19,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#undef __UCLIBC_NO_UNDERSCORES__
+#define __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/vax/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/x86_64/bits/uClibc_arch_features.h

@@ -18,7 +18,7 @@
 #undef __UCLIBC_BROKEN_CREATE_MODULE__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__

+ 1 - 1
libc/sysdeps/linux/xtensa/bits/uClibc_arch_features.h

@@ -21,7 +21,7 @@
 #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
 
 /* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_NO_UNDERSCORES__
+#undef __UCLIBC_UNDERSCORES__
 
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__