aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/page.h
diff options
context:
space:
mode:
authorSegher Boessenkool <[email protected]>2018-02-28 17:02:49 -0800
committerMichael Ellerman <[email protected]>2018-03-06 09:21:21 +1100
commit51d42f0f5fd6c74144d19bf6a663521e2ea99765 (patch)
tree0d047444b749a85aa45b8aec8246dae5122319b1 /arch/powerpc/include/asm/page.h
parent661e50bc853209e41a5c14a290ca4decc43cbfd1 (diff)
powerpc: Keep const vars out of writable .sdata
Newer gcc will support "-mno-readonly-in-sdata"[1], which makes sure that the optimization on PPC32 for variables getting moved into the .sdata section will not apply to const variables (which must be in .rodata). This was originally noticed in mm/rodata_test.c when rodata_test_data was not static: c0695034 g O .data 00000004 rodata_test_data After this patch with an updated compiler, this is correctly in .rodata. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411 Reported-by: Christophe Leroy <[email protected]> Signed-off-by: Segher Boessenkool <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/include/asm/page.h')
0 files changed, 0 insertions, 0 deletions