mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-12 18:06:18 +07:00
4eff2b4f32
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
27 lines
691 B
Makefile
27 lines
691 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for xmon
|
|
|
|
GCOV_PROFILE := n
|
|
KCOV_INSTRUMENT := n
|
|
UBSAN_SANITIZE := n
|
|
KASAN_SANITIZE := n
|
|
|
|
# Disable ftrace for the entire directory
|
|
ORIG_CFLAGS := $(KBUILD_CFLAGS)
|
|
KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
|
|
|
|
ifdef CONFIG_CC_IS_CLANG
|
|
# clang stores addresses on the stack causing the frame size to blow
|
|
# out. See https://github.com/ClangBuiltLinux/linux/issues/252
|
|
KBUILD_CFLAGS += -Wframe-larger-than=4096
|
|
endif
|
|
|
|
ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
|
|
|
|
obj-y += xmon.o nonstdio.o spr_access.o xmon_bpts.o
|
|
|
|
ifdef CONFIG_XMON_DISASSEMBLY
|
|
obj-y += ppc-dis.o ppc-opc.o
|
|
obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|
|
endif
|