about summary refs log tree commit diff
path: root/sysdeps/sparc/DEFS.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/DEFS.h')
-rw-r--r--sysdeps/sparc/DEFS.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/sparc/DEFS.h b/sysdeps/sparc/DEFS.h
index ef6966319f..ab70f5550e 100644
--- a/sysdeps/sparc/DEFS.h
+++ b/sysdeps/sparc/DEFS.h
@@ -1,4 +1,12 @@
-#define	FUNC(name)	\
+#ifdef HAVE_ELF
+# define FUNC(name)		\
+	.global name;		\
+	.type name,@function;	\
+	.align 4;		\
+	name:
+#else
+# define FUNC(name)	\
 	.global name;	\
 	.align 4;	\
 	name:
+#endif