linux/arch/arm/mach-omap2
Tony Lindgren eeaf9646ac ARM: OMAP2+: Fix l2dis_3630 for rodata
We don't want to write to .text section. Let's move l2dis_3630
to .data and access it via a pointer.

For calculating the offset, let's optimize out the add and do it
in ldr/str as suggested by Nicolas Pitre <nicolas.pitre@linaro.org>.

Cc: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: stable@vger.kernel.org # v4.0+
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org # v4.0+
Fixes: 1e6b48116a95 ("ARM: mm: allow non-text sections to be
non-executable")
Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-01-22 08:26:08 -08:00
..
2013-06-12 08:00:35 -07:00
2015-11-10 14:48:36 -08:00
2014-01-17 12:35:48 -08:00
2014-03-19 10:52:23 +02:00
2013-02-21 15:27:22 -08:00
2015-07-16 00:06:05 -07:00
2013-05-08 17:07:40 -07:00
2015-11-10 14:48:36 -08:00
2015-07-20 10:52:36 -07:00
2015-10-12 10:56:36 -07:00