summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/compat/libc-symbols.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-09 05:55:16 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-09 05:55:16 +0000
commit3dfe29ec75a1adfe9f05e8437ff8b67f309d4acd (patch)
tree2f6590386d1c091a8ee72cce290c0798f82f974c /libpthread/nptl/compat/libc-symbols.h
parent75f9a2b1874f3c50727c6b91fd5b5735a2a5deb3 (diff)
downloaduClibc-alpine-3dfe29ec75a1adfe9f05e8437ff8b67f309d4acd.tar.bz2
uClibc-alpine-3dfe29ec75a1adfe9f05e8437ff8b67f309d4acd.tar.xz
Compile cleanups for NPTL support.
Diffstat (limited to 'libpthread/nptl/compat/libc-symbols.h')
-rw-r--r--libpthread/nptl/compat/libc-symbols.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpthread/nptl/compat/libc-symbols.h b/libpthread/nptl/compat/libc-symbols.h
index 777cafb3e..0dfb5a565 100644
--- a/libpthread/nptl/compat/libc-symbols.h
+++ b/libpthread/nptl/compat/libc-symbols.h
@@ -201,4 +201,16 @@
/* This should not appear outside `#if SHLIB_COMPAT (...)'. */
# define compat_symbol(lib, local, symbol, version) ...
+/* Move compatibility symbols out of the way by placing them all in a
+ * special section. */
+#ifndef __ASSEMBLER__
+# define attribute_compat_text_section \
+ __attribute__ ((section (".text.compat")))
+# define attribute_compat_data_section \
+ __attribute__ ((section (".data.compat")))
+#else
+# define compat_text_section .section ".text.compat", "ax";
+# define compat_data_section .section ".data.compat", "aw";
+#endif
+
#endif /* _LIBC_SYMBOLS_H */