splitting libc -> libc + libsys and static linking

Brooks Davis brooks at one-eyed-alien.net
Tue Apr 3 20:32:11 UTC 2018


We (mostly Ali) are working on a patch to to split the actual syscalls
(__sys_<foo>) out of libc and into a libsys.  For dynamic linking,
this is fairly straightforward (link libc against libsys, maybe as a
filter).  For static linking, I'm looking for feedback on the right
approach.  Do we link libsys.a into libc.a?  Do we try to teach all the
compilers to add -lsys?  I'm pretty sure we don't modify all the ports
that statically link programs.  Is there some easy approach I'm missing?

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20180403/6ef395e3/attachment.sig>


More information about the freebsd-toolchain mailing list