From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "J. Neuschäfer via buildroot" <buildroot@buildroot.org>
Cc: "J. Neuschäfer" <j.neuschaefer@gmx.net>
Subject: Re: [Buildroot] [PATCH] Config.in: add option to ban textrels
Date: Thu, 9 May 2024 17:40:57 +0200 [thread overview]
Message-ID: <20240509174057.1234e233@windsurf> (raw)
In-Reply-To: <20240419-ztext-v1-1-a8d5c2cfcf57@gmx.net>
Hello,
On Fri, 19 Apr 2024 16:52:50 +0200
J. Neuschäfer via buildroot <buildroot@buildroot.org> wrote:
> Ideally, this option would default to yes when a musl-based toolchain is
> used, as musl doesn't support TEXTRELs[1] and programs with TEXTRELs
> will crash on start-up under musl.
>
> However, to avoid a large build fallout, it defaults to "no" for now.
> After this option has been enabled in build tests for a while and some
> of the fallout has been fixed, the default can be changed.
>
> [1]: https://www.openwall.com/lists/musl/2020/09/25/4
>
> Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
Thanks for the patch. I am not fully sure I totally grasp the issue,
but I'm wondering if making it an option is really the right thing to
do. If indeed TEXTRELs don't work with musl, then we should simply
disable them.
One thing I'm not entirely clear is that
https://www.openwall.com/lists/musl/2020/09/25/4 states "I recently
discovered that musl doesn't support DT/DF_TEXTREL in the main
executable", while passing -z text will disallow TEXTREL everywhere,
not only "main executable" but also shared libraries. Is that intended?
Do you have an idea of the amount of breakage enabling -z text would
cause? Which particular package/situation did you encounter that was
using TEXTREL and shouldn't have in order to be compatible with musl?
Thanks,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-05-09 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 14:52 [Buildroot] [PATCH] Config.in: add option to ban textrels J. Neuschäfer via buildroot
2024-05-09 15:40 ` Thomas Petazzoni via buildroot [this message]
2024-05-10 13:26 ` J. Neuschäfer via buildroot
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240509174057.1234e233@windsurf \
--to=buildroot@buildroot.org \
--cc=j.neuschaefer@gmx.net \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox