[PATCH v3] explicit_bzero yet again
Rich Felker
dalias@libc.org
Tue Dec 29 17:45:00 GMT 2015
On Tue, Dec 29, 2015 at 09:22:49AM -0800, Zack Weinberg wrote:
> On Tue, Dec 29, 2015 at 9:08 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On 07 Dec 2015 10:58, Zack Weinberg wrote:
> >> glibc explicitly doesn't support being statically linked
> >
> > we keep it working, and we shouldn't be landing changes that explicitly break it
>
> Are you rejecting the patch in the absence of compiler support?
I'm not calling for a rejection of the patch, but for an end to the
claim that static linking is "not supported by glibc". It is, and it
should work. It's probably unlikely that the code will be optimized
out in the near future (though I haven't checked this), but I think it
would make sense to add an extra line or two to make it semantically
correct and safe against LTO inlining. This does not require any heavy
"compiler support", just a compiler barrier in the form of an empty
asm statement (with proper constraints) or similar.
Rich
More information about the Libc-alpha
mailing list