diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-12 16:42:39 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-26 13:36:17 -0300 |
commit | 78d1724d53e23fcbbf4df832015aae269b98249c (patch) | |
tree | 0afd09f9c7536942ca5ffc23450d9427320914f6 /sysdeps/unix/sysv/linux/aarch64/send.c | |
parent | 4d2e9ef806bd9edc9cf5e133983a4e86ddab381a (diff) | |
download | glibc-78d1724d53e23fcbbf4df832015aae269b98249c.tar glibc-78d1724d53e23fcbbf4df832015aae269b98249c.tar.gz glibc-78d1724d53e23fcbbf4df832015aae269b98249c.tar.bz2 glibc-78d1724d53e23fcbbf4df832015aae269b98249c.zip |
nptl: Remove send from libpthread
The libc version is identical and built with same flags. Both aarch64
and nios2 also requires to export __send and tt was done previously with
the HAVE_INTERNAL_SEND_SYMBOL (which forced the symbol creation).
All __send callers are internal to libc and the original issue that
required the symbol export was due a missing libc_hidden_def. So
a compat symbol is added for __send and the libc_hidden_def is
defined regardless.
Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/send.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/send.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/send.c b/sysdeps/unix/sysv/linux/aarch64/send.c new file mode 100644 index 0000000000..db4d36b2b1 --- /dev/null +++ b/sysdeps/unix/sysv/linux/aarch64/send.c @@ -0,0 +1,9 @@ +#include <shlib-compat.h> + +#include <sysdeps/unix/sysv/linux/send.c> + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_17, GLIBC_2_34) +/* libpthread compat symbol: AArch64 used the generic version without the + libc_hidden_def which lead in a non existent __send symbol in libc.so. */ +compat_symbol (libc, __libc_send, __send, GLIBC_2_17); +#endif |