summaryrefslogtreecommitdiffstats
path: root/libc/string/sparc/_glibc_inc.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-26 00:48:46 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-26 00:48:46 +0000
commit62452e396bf7f941bc61386f13b2bf73f04ff3fa (patch)
tree792ed8b84d45a4d704dbd1f3e13405fe89a90e33 /libc/string/sparc/_glibc_inc.h
parentb6f73e51f51cd9c550fce169b58fe8090b13941b (diff)
downloaduClibc-alpine-62452e396bf7f941bc61386f13b2bf73f04ff3fa.tar.bz2
uClibc-alpine-62452e396bf7f941bc61386f13b2bf73f04ff3fa.tar.xz
Sync with trunk.
Diffstat (limited to 'libc/string/sparc/_glibc_inc.h')
-rw-r--r--libc/string/sparc/_glibc_inc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libc/string/sparc/_glibc_inc.h b/libc/string/sparc/_glibc_inc.h
new file mode 100644
index 000000000..7840ba1bf
--- /dev/null
+++ b/libc/string/sparc/_glibc_inc.h
@@ -0,0 +1,30 @@
+/*
+ * Setup some glibc defines so we can just drop in the
+ * asm files from glibc without any modification.
+ */
+
+#include <features.h>
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+# define ENTRY_ALIGN 4
+#else
+# define ENTRY_ALIGN 2
+#endif
+
+#define ENTRY(sym) \
+ .global sym; \
+ .align ENTRY_ALIGN; \
+ .type sym,%function; \
+ sym:
+
+#define LOC(sym) \
+ .L ## sym
+
+#define END(sym) \
+ .size sym,.-sym;
+
+#undef weak_alias
+#define weak_alias(sym, alias) \
+ .weak alias; \
+ alias = sym;