mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Mike Granby <>
To: "" <>
Subject: [musl] _chk Variants
Date: Mon, 11 Jul 2022 20:11:38 +0000	[thread overview]
Message-ID: <> (raw)

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.

             reply	other threads:[~2022-07-11 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11 20:11 Mike Granby [this message]
     [not found] ` < <>
2022-07-11 20:31   ` alice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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).