Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2018 16:44:10 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        freebsd-toolchain@freebsd.org, Ali Mashtizadeh <ali@mashtizadeh.com>
Subject:   Re: splitting libc -> libc + libsys and static linking
Message-ID:  <20180403204410.zfxziemnzeiejqlp@mutt-hbsd>
In-Reply-To: <20180403203210.GA23045@spindle.one-eyed-alien.net>
References:  <20180403203210.GA23045@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--dbgvktdl2m5aziov
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 03, 2018 at 08:32:10PM +0000, Brooks Davis wrote:
> 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?

Hey Brooks,

I'm curious about the reasoning behind this change. Could you explain
in more detail why you'd like to create a libsys?

Thanks,

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:    +1 443-546-8752
Tor+XMPP+OTR:        lattera@is.a.hacker.sx
GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

--dbgvktdl2m5aziov
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlrD55YACgkQaoRlj1JF
bu6IRxAArWO8pudmzUWfvWWEYFfhWfJSc4vfrBzQ1kFFnCwQeN+iONG3F2ZTpWde
bvuxtkjWX5mDPCkw/sUBDqRbgg0NPi5hl6M3GPcQuA3tkNGDqcAVD/N94P7y9cMR
Cg9qCEHqT+uNccigNdeVK0FKUxG38rBq9ExwP5pWiMbsu2+7YMNDel/aTi5s8fXO
p6ZKPHLBpEQ0qWXlFO0AxwjxSEAWS8tpxBoGKQwUVyRvCK+2TUgoenxzwz0CU4eI
kjjtMauDe8ZOqOPICb2H9T+oDg7n6tXTZfUxLfYnfAfp+nOQGKBCSJAg9CYwus6/
qNfkDNQJ9T1Bs8vnO1Oy1tX6Uweh1S1RmQ6BlbfGHgtLUg2zab5M385vd4aFH3b9
kyrxWCLrQfTz53GDwJVxhk+tU638JMu8556bi2HmWB/L5DdjJCk/APm3l5gxp17S
z+weGjW2rS47j2vfksS+VZIwJPOP9tVZZHzh8jgcGoVwjfI4oPJLjbN/pT2il900
M4bTMUBTLSriVVSdHclnQhLvfOlif8Io9FE3flrz/TZPlIVwpoINX9D1usRkyKzs
5z5IyGGFhd0R5Ynrfg0CVwzZ9gMTRxhpS8n5aTpTH4WpsUQ6OasjUoDS6Rt3eATF
AbG2lWHVDpMa/KACYL9dLFbbDCAu9aoFzl3Axdp+8lzb7xp9e7U=
=MzEX
-----END PGP SIGNATURE-----

--dbgvktdl2m5aziov--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180403204410.zfxziemnzeiejqlp>