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

Nick Desaulniers ndesaulniers at google.com
Sat Aug 14 04:59:21 AEST 2021


On Fri, Aug 13, 2021 at 11:24 AM Bill Wendling <morbo at google.com> 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


More information about the Linuxppc-dev mailing list