This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
libc_hidden & weak_alias mechanism in vfork/clone/..
- From: Waldemar Brodkorb <mail at waldemar-brodkorb dot de>
- To: libc-help at sourceware dot org
- Date: Thu, 31 May 2018 01:30:15 +0200
- Subject: libc_hidden & weak_alias mechanism in vfork/clone/..
- Reply-to: Waldemar Brodkorb <mail at waldemar-brodkorb dot de>
Hello glibc hackers,
I would like to understand why GNU C Library is using a lot of weak
aliases for C library functions like vfork or clone.
What is the reason for it?
Or in this case the assembly function name is __libc_vfork and
__vfork and vfork is somehow involved.
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/vfork.S;h=6c53e93a928d736be73161954fd83bdb0672fd4f;hb=HEAD
best regards
Waldemar