diff options
Diffstat (limited to 'libpthread/nptl/compat/libc-symbols.h')
-rw-r--r-- | libpthread/nptl/compat/libc-symbols.h | 12 |
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 */ |