]> git.sur5r.net Git - u-boot/commitdiff
arm: adapt asm/linkage.h from Linux
authorAneesh V <aneesh@ti.com>
Thu, 8 Mar 2012 07:20:17 +0000 (07:20 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:26 +0000 (08:31 +0200)
This will add ARM specific over-rides for the defines
from linux/linkage.h

Signed-off-by: Aneesh V <aneesh@ti.com>
Tested-by: Mike Frysinger <vapier@gentoo.org>
arch/arm/include/asm/linkage.h [new file with mode: 0644]
include/linux/linkage.h

diff --git a/arch/arm/include/asm/linkage.h b/arch/arm/include/asm/linkage.h
new file mode 100644 (file)
index 0000000..dbe4b4e
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef __ASM_LINKAGE_H
+#define __ASM_LINKAGE_H
+
+#define __ALIGN .align 0
+#define __ALIGN_STR ".align 0"
+
+#endif
index ed4cf6cbcd507a8f53b7ed9bc68b8e2f0e84de60..7b749bbda708a8b6f1edcbbcd0becf21e566d2d7 100644 (file)
 #define SYMBOL_NAME_LABEL(X)   X:
 #endif
 
+#ifndef __ALIGN
 #define __ALIGN .align         4
+#endif
+
+#ifndef __ALIGN_STR
 #define __ALIGN_STR            ".align 4"
+#endif
 
 #ifdef __ASSEMBLY__
 
@@ -67,7 +72,7 @@
 
 #ifndef ENDPROC
 #define ENDPROC(name) \
-       .type name, @function; \
+       .type name STT_FUNC; \
        END(name)
 #endif