On Wed, Feb 28, 2018 at 01:46:33PM -0800, Kees Cook wrote:
> On Tue, Feb 27, 2018 at 2:01 PM, Segher Boessenkool
> <seg...@kernel.crashing.org> wrote:
> > This adds a new option -mreadonly-in-sdata (on by default) that
> > controls whether readonly data can be put in sdata.  (For EABI this
> > does nothing, readonly data is put in sdata2 as usual).
> 
> Cool! Thanks for working on this.
> 
> > Kees, could you try this out with your use case?  Add the flag
> > -mno-readonly-in-sdata in your build scripts.  The patch is against
> > GCC trunk.
> 
> I'm struggling to create a ppc cross compiler, otherwise I would be
> happy to test this. :)

For compiling kernels you can use
<http://git.infradead.org/users/segher/buildall.git>

> If you're able to build a ppc kernel and remove the "static" from
> mm/rodata_test_data.c's rodata_test_data and see the rodata_test_data
> variable not in .sdata, that should be sufficient. The case reported
> was here:
> https://lkml.org/lkml/2017/9/21/156
> 
> I'll continue trying to solve my cross build issue...

I'm trying to figure out how to get that file to build at all :-)


Segher

Reply via email to