powerpc/xmon: Move breakpoints to text section
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:23 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:36 +0000 (00:10 +1000)
commit4eff2b4f32a309e2171bfe53db3e93b5614f77cb
treecf82cb41ec421b1761315a1b903948219e0e894a
parent51c9ba11f17f25ace1ea6bbfd4586c59105432de
powerpc/xmon: Move breakpoints to text section

The instructions for xmon's breakpoint are stored bpt_table[] which is in
the data section. This is problematic as the data section may be marked
as no execute. Move bpt_table[] to the text section.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-4-jniethe5@gmail.com
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/xmon/Makefile
arch/powerpc/xmon/xmon.c
arch/powerpc/xmon/xmon_bpts.S [new file with mode: 0644]
arch/powerpc/xmon/xmon_bpts.h [new file with mode: 0644]