mirror of
https://github.com/fluencelabs/musl
synced 2025-05-29 15:41:36 +00:00
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.
19 lines
532 B
C
19 lines
532 B
C
#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_c);
|
|
|
|
long (__syscall_cp)(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_cp_c(nr, u, v, w, x, y, z);
|
|
}
|