Remove ASM_TYPE_DIRECTIVE for ARM.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 2 Aug 2012 20:57:45 +0000 (20:57 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 2 Aug 2012 20:57:45 +0000 (20:57 +0000)
ports/ChangeLog.arm
ports/sysdeps/arm/sysdep.h

index 58ad60d..8379dc0 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-02  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/arm/sysdep.h (ASM_TYPE_DIRECTIVE): Remove.
+       (ENTRY): Do not use ASM_TYPE_DIRECTIVE.
+
 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/arm/kernel-features.h
index cd3d70b..6ec2bd6 100644 (file)
@@ -30,8 +30,6 @@
 /* Syntactic details of assembler.  */
 
 #define ALIGNARG(log2) log2
-/* For ELF we need the `.type' directive to make shared libs work right.  */
-#define ASM_TYPE_DIRECTIVE(name,typearg) .type name,%##typearg;
 #define ASM_SIZE_DIRECTIVE(name) .size name,.-name
 
 #define PLTJMP(_x)     _x##(PLT)
@@ -63,7 +61,7 @@
 /* Define an entry point visible from C.  */
 #define        ENTRY(name)                                                           \
   .globl C_SYMBOL_NAME(name);                                                \
-  ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),function)                          \
+  .type C_SYMBOL_NAME(name),%function;                                       \
   .align ALIGNARG(4);                                                        \
   C_LABEL(name)                                                                      \
   .cfi_sections .debug_frame;                                                \