]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit273652ae268a90dce125917760ad1cccdd168e5f
treecf82cb41ec421b1761315a1b903948219e0e894a
parent87417bbe7a71f1d9f9c5e70b24193d2e118af794
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]