From d96b12b755483208673fb05e2e60a15d3822752d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 6 Jul 2014 22:56:25 -0400 Subject: rework cancellation weak alias logic not to depend on archive order if the order of object files in the static archive libc.a was not respected by the linker, the old logic could wrongly cause POSIX symbols outside of the ISO C namespace to be pulled into pure C programs. this should not happen with well-behaved linkers, but relying on the link order was a bad idea anyway. files are renamed to better reflect their contents now that they don't need names to control their order as members in the archive file. --- src/thread/cancel_dummy.c | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/thread/cancel_dummy.c (limited to 'src/thread/cancel_dummy.c') diff --git a/src/thread/cancel_dummy.c b/src/thread/cancel_dummy.c deleted file mode 100644 index b630b02c..00000000 --- a/src/thread/cancel_dummy.c +++ /dev/null @@ -1,17 +0,0 @@ -#include "pthread_impl.h" -#include "syscall.h" - -static long sccp(syscall_arg_t nr, - syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, - syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) -{ - return (__syscall)(nr, u, v, w, x, y, z); -} - -weak_alias(sccp, __syscall_cp); - -static void dummy() -{ -} - -weak_alias(dummy, __testcancel); -- cgit v1.2.1