Browse Source

remove __UCLIBC_ASM_GLOBAL_DIRECTIVE__

.globl can be used for every architecture so remove the define.
Sync with GNU C library.
Waldemar Brodkorb 8 years ago
parent
commit
263573cf6e
41 changed files with 17 additions and 117 deletions
  1. 4 11
      include/libc-symbols.h
  2. 0 3
      libc/sysdeps/linux/alpha/bits/uClibc_arch_features.h
  3. 0 3
      libc/sysdeps/linux/arc/bits/uClibc_arch_features.h
  4. 0 3
      libc/sysdeps/linux/arm/bits/uClibc_arch_features.h
  5. 1 1
      libc/sysdeps/linux/arm/sysdep.h
  6. 0 3
      libc/sysdeps/linux/avr32/bits/uClibc_arch_features.h
  7. 0 3
      libc/sysdeps/linux/bfin/bits/uClibc_arch_features.h
  8. 0 3
      libc/sysdeps/linux/c6x/bits/uClibc_arch_features.h
  9. 0 3
      libc/sysdeps/linux/common/bits/uClibc_arch_features.h
  10. 0 3
      libc/sysdeps/linux/cris/bits/uClibc_arch_features.h
  11. 2 2
      libc/sysdeps/linux/cris/sysdep.h
  12. 0 3
      libc/sysdeps/linux/e1/bits/uClibc_arch_features.h
  13. 0 3
      libc/sysdeps/linux/frv/bits/uClibc_arch_features.h
  14. 0 3
      libc/sysdeps/linux/h8300/bits/uClibc_arch_features.h
  15. 0 3
      libc/sysdeps/linux/hppa/bits/uClibc_arch_features.h
  16. 0 3
      libc/sysdeps/linux/i386/bits/uClibc_arch_features.h
  17. 1 1
      libc/sysdeps/linux/i386/sysdep.h
  18. 0 3
      libc/sysdeps/linux/i960/bits/uClibc_arch_features.h
  19. 0 3
      libc/sysdeps/linux/ia64/bits/uClibc_arch_features.h
  20. 0 3
      libc/sysdeps/linux/lm32/bits/uClibc_arch_features.h
  21. 0 3
      libc/sysdeps/linux/m68k/bits/uClibc_arch_features.h
  22. 0 3
      libc/sysdeps/linux/metag/bits/uClibc_arch_features.h
  23. 0 3
      libc/sysdeps/linux/microblaze/bits/uClibc_arch_features.h
  24. 0 3
      libc/sysdeps/linux/mips/bits/uClibc_arch_features.h
  25. 0 3
      libc/sysdeps/linux/nios/bits/uClibc_arch_features.h
  26. 0 3
      libc/sysdeps/linux/nios2/bits/uClibc_arch_features.h
  27. 0 3
      libc/sysdeps/linux/or1k/bits/uClibc_arch_features.h
  28. 0 3
      libc/sysdeps/linux/powerpc/bits/uClibc_arch_features.h
  29. 3 3
      libc/sysdeps/linux/powerpc/powerpc32/sysdep.h
  30. 0 3
      libc/sysdeps/linux/sh/bits/uClibc_arch_features.h
  31. 1 1
      libc/sysdeps/linux/sh/sysdep.h
  32. 0 3
      libc/sysdeps/linux/sh64/bits/uClibc_arch_features.h
  33. 0 3
      libc/sysdeps/linux/sparc/bits/uClibc_arch_features.h
  34. 1 1
      libc/sysdeps/linux/v850/Makefile
  35. 0 3
      libc/sysdeps/linux/v850/bits/uClibc_arch_features.h
  36. 0 3
      libc/sysdeps/linux/vax/bits/uClibc_arch_features.h
  37. 0 3
      libc/sysdeps/linux/x86_64/bits/uClibc_arch_features.h
  38. 1 1
      libc/sysdeps/linux/x86_64/sysdep.h
  39. 0 3
      libc/sysdeps/linux/xtensa/bits/uClibc_arch_features.h
  40. 2 2
      libc/sysdeps/linux/xtensa/sysdep.h
  41. 1 1
      libpthread/linuxthreads/internals.h

+ 4 - 11
include/libc-symbols.h

@@ -38,7 +38,6 @@
    It should define for us the following symbols:
 
    * HAVE_ASM_SET_DIRECTIVE if we have `.set B, A' instead of `A = B'.
-   * ASM_GLOBAL_DIRECTIVE with `.globl' or `.global'.
    * ASM_TYPE_DIRECTIVE_PREFIX with `@' or `#' or whatever for .type,
      or leave it undefined if there is no .type directive.
    * HAVE_ELF if using ELF, which supports weak symbols using `.weak'.
@@ -120,12 +119,6 @@
 # undef HAVE_ASM_SET_DIRECTIVE
 #endif
 
-#ifdef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-# define ASM_GLOBAL_DIRECTIVE __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-#else
-# define ASM_GLOBAL_DIRECTIVE .global
-#endif
-
 #ifdef __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 # define HAVE_ASM_WEAK_DIRECTIVE
 #else
@@ -209,12 +202,12 @@
 
 # ifdef HAVE_ASM_SET_DIRECTIVE
 #  define strong_alias(original, alias) \
-	ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
+	.globl C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
 	.set	C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
 #  define strong_data_alias(original, alias) strong_alias(original, alias)
 # else
 #  define strong_alias(original, alias) \
-	ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
+	.globl C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
 	C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
 #  define strong_data_alias(original, alias) strong_alias(original, alias)
 # endif
@@ -443,12 +436,12 @@ FIXME! - ?
 
 #  ifdef HAVE_ASM_SET_DIRECTIVE
 #   define _hidden_strong_alias(original, alias) \
-	ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
+	.globl C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
 	.hidden	C_SYMBOL_NAME(alias)				ASM_LINE_SEP \
 	.set	C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
 #  else /* dont have .set directive */
 #   define _hidden_strong_alias(original, alias) \
-	ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
+	.globl C_SYMBOL_NAME(alias)		ASM_LINE_SEP \
 	.hidden	C_SYMBOL_NAME(alias)				ASM_LINE_SEP \
 	C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
 #  endif

+ 0 - 3
libc/sysdeps/linux/alpha/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #undef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/arc/bits/uClibc_arch_features.h

@@ -26,9 +26,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/arm/bits/uClibc_arch_features.h

@@ -27,9 +27,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 1 - 1
libc/sysdeps/linux/arm/sysdep.h

@@ -64,7 +64,7 @@
 
 /* Define an entry point visible from C.  */
 #define	ENTRY(name)						\
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);			\
+  .globl C_SYMBOL_NAME(name);			\
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),function)		\
   .align ALIGNARG(4);						\
   name##:							\

+ 0 - 3
libc/sysdeps/linux/avr32/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/bfin/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/c6x/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/common/bits/uClibc_arch_features.h

@@ -26,9 +26,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/cris/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 2 - 2
libc/sysdeps/linux/cris/sysdep.h

@@ -121,14 +121,14 @@
 /* Define an entry point visible from C.  */
 #define ENTRY(name) \
   .text							@ \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (name) 		@ \
+  .globl C_SYMBOL_NAME (name) 		@ \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME (name), function)	@ \
   .align ALIGNARG (2) 					@ \
   C_LABEL(name)
 
 #define HIDDEN_ENTRY(name) \
   .text							@ \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (name) 		@ \
+  .globl C_SYMBOL_NAME (name) 		@ \
   .hidden C_SYMBOL_NAME (name)				@ \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME (name), function)	@ \
   .align ALIGNARG (2) 					@ \

+ 0 - 3
libc/sysdeps/linux/e1/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/frv/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/h8300/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/hppa/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/i386/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 1 - 1
libc/sysdeps/linux/i386/sysdep.h

@@ -43,7 +43,7 @@
    incomplete stabs information.  Fake some entries here which specify
    the current source file.  */
 #define	ENTRY(name)							      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
   .align ALIGNARG(4);							      \
   C_LABEL(name)								      \

+ 0 - 3
libc/sysdeps/linux/i960/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/ia64/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/lm32/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/m68k/bits/uClibc_arch_features.h

@@ -27,9 +27,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/metag/bits/uClibc_arch_features.h

@@ -28,9 +28,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/microblaze/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #undef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/mips/bits/uClibc_arch_features.h

@@ -28,9 +28,6 @@
 /* does your target have an asm .set ? */
 #undef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/nios/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/nios2/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/or1k/bits/uClibc_arch_features.h

@@ -26,9 +26,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/powerpc/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 3 - 3
libc/sysdeps/linux/powerpc/powerpc32/sysdep.h

@@ -36,7 +36,7 @@
 #endif /* PROF */
 
 #define	ENTRY(name)							      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
   .align ALIGNARG(2);							      \
   C_LABEL(name)								      \
@@ -56,7 +56,7 @@
    past a 2^align boundary.  */
 #ifdef PROF
 # define EALIGN(name, alignt, words)					      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
   .align ALIGNARG(2);							      \
   C_LABEL(name)								      \
@@ -68,7 +68,7 @@
   0:
 #else /* PROF */
 # define EALIGN(name, alignt, words)					      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
   .align ALIGNARG(alignt);						      \
   EALIGN_W_##words;							      \

+ 0 - 3
libc/sysdeps/linux/sh/bits/uClibc_arch_features.h

@@ -27,9 +27,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 1 - 1
libc/sysdeps/linux/sh/sysdep.h

@@ -38,7 +38,7 @@
 
 /* Define an entry point visible from C.  */
 #define	ENTRY(name)							      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),function)			      \
   .align ALIGNARG(5);							      \
   C_LABEL(name)								      \

+ 0 - 3
libc/sysdeps/linux/sh64/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/sparc/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 1 - 1
libc/sysdeps/linux/v850/Makefile

@@ -9,7 +9,7 @@ TOPDIR=../../../../
 include $(TOPDIR)Rules.mak
 
 CFLAGS += -I..
-ASFLAGS += -I.. -D__ASSEMBLER -DASM_GLOBAL_DIRECTIVE=.globl
+ASFLAGS += -I.. -D__ASSEMBLER
 
 TARGET_MACHINE_TYPE=$(shell $(CC) -dumpmachine)
 

+ 0 - 3
libc/sysdeps/linux/v850/bits/uClibc_arch_features.h

@@ -24,9 +24,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/vax/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 0 - 3
libc/sysdeps/linux/x86_64/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 1 - 1
libc/sysdeps/linux/x86_64/sysdep.h

@@ -38,7 +38,7 @@
 
 /* Define an entry point visible from C.  */
 #define	ENTRY(name)							      \
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
+  .globl C_SYMBOL_NAME(name);				      \
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
   .align ALIGNARG(4);							      \
   C_LABEL(name)								      \

+ 0 - 3
libc/sysdeps/linux/xtensa/bits/uClibc_arch_features.h

@@ -23,9 +23,6 @@
 /* does your target have an asm .set ? */
 #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
 
-/* define if target doesn't like .global */
-#undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
-
 /* define if target supports .weak */
 #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
 

+ 2 - 2
libc/sysdeps/linux/xtensa/sysdep.h

@@ -40,7 +40,7 @@
 
 
 #define	ENTRY(name)							\
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				\
+  .globl C_SYMBOL_NAME(name);				\
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name), @function);			\
   .align ALIGNARG(2);							\
   LITERAL_POSITION;							\
@@ -49,7 +49,7 @@
   CALL_MCOUNT
 
 #define	HIDDEN_ENTRY(name)						\
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				\
+  .globl C_SYMBOL_NAME(name);				\
   .hidden C_SYMBOL_NAME(name);						\
   ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name), @function);			\
   .align ALIGNARG(2);							\

+ 1 - 1
libpthread/linuxthreads/internals.h

@@ -475,7 +475,7 @@ extern pid_t __pthread_fork (struct fork_block *b) attribute_hidden;
 
 #define asm_handle(name) _asm_handle(name)
 #define _asm_handle(name) #name
-#define ASM_GLOBAL asm_handle(ASM_GLOBAL_DIRECTIVE)
+#define ASM_GLOBAL asm_handle(.globl)
 #define ASM_CANCEL(name) asm_handle(C_SYMBOL_NAME(name))
 
 #if !defined NOT_IN_libc