mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] _chk Variants
@ 2022-07-11 20:11 Mike Granby
       [not found] ` < <MN2PR12MB308734AB7A84D25A20E5880EAB879@MN2PR12MB3087.namprd12.prod.outlook.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Granby @ 2022-07-11 20:11 UTC (permalink / raw)
  To: musl

I have been trying to run a GCC cross-compiler within Alpine, and hitting an issue with musl not providing the _chk variants of various APIs. For example, glibc provides __printf_chk which takes an additional argument and optionally performs various security checks before proceeding. I know the official way forward is to rebuild the compiler with the option to disable these calls, but rebuilding the GCC toolchain is not for the faint of heart, and I have thus been loath to go down that path. Instead, I developed a patch for the Alpine's musl APK that implemented the _chk variants as mere wrappers for the underlying APIs, thus allowing GCC to operate, albeit without the extra security that a full implementation would provide. This met my immediate need, but I am interested as to the view of the community in either implementing the _chk variants for real, or in providing the wrappers to enable better binary compatibility.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-11 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 20:11 [musl] _chk Variants Mike Granby
     [not found] ` < <MN2PR12MB308734AB7A84D25A20E5880EAB879@MN2PR12MB3087.namprd12.prod.outlook.com>
2022-07-11 20:31   ` alice

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).