Re: [PATCH] ppc: add "-z notext" flag to disable diagnostic

From: Nick Desaulniers
Date: Fri Aug 13 2021 - 14:59:40 EST


On Fri, Aug 13, 2021 at 11:24 AM Bill Wendling <morbo@xxxxxxxxxx> wrote:
>
> BTW, this patch should more properly be attributed to Fangrui Song. I
> can send a follow-up patch that reflects this and adds more context to
> the commit message.

Sounds good to me. The TL;DR is that LLD has a different implicit
default for `-z text` vs `-z notext` than BFD. We can emulate the
behavior or BFD by simply being explicit about `-z notext` always.

Or we can dig through why there are relocations in read only sections,
fix those, then enable `-z text` for all linkers. My recommendation
would be get the thing building, then go digging time permitting.
--
Thanks,
~Nick Desaulniers