]> 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)
commite73f950a84984b906c49e0e29c3e651c457c2626
treecf82cb41ec421b1761315a1b903948219e0e894a
parent9a63278b09f05c4a558e5b9f9a8f3cee3497daf7
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]