From 78d1724d53e23fcbbf4df832015aae269b98249c Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 12 Mar 2021 16:42:39 -0300 Subject: 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. --- sysdeps/unix/sysv/linux/nios2/send.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/nios2/send.c (limited to 'sysdeps/unix/sysv/linux/nios2/send.c') diff --git a/sysdeps/unix/sysv/linux/nios2/send.c b/sysdeps/unix/sysv/linux/nios2/send.c new file mode 100644 index 0000000000..c1621c8348 --- /dev/null +++ b/sysdeps/unix/sysv/linux/nios2/send.c @@ -0,0 +1,9 @@ +#include + +#include + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_21, GLIBC_2_34) +/* libpthread compat symbol: Nios2 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_21); +#endif -- cgit v1.2.3-70-g09d2