Subject: [PATCH] kprobes needs emulate_step()

From: Olaf Hering <[email-masked]>
Date: Tue, 14 Feb 2006 22:26:37 +0100

On Tue, Feb 14, Christoph Hellwig wrote:

> On Tue, Feb 14, 2006 at 02:10:50PM +0100, Olaf Hering wrote:
> > 
> > KPROBES depends on XMON.
> > arch/powerpc/lib/step.c is only compiled if CONFIG_XMON is enabled.
> > 
> > arch/powerpc/kernel/built-in.o:
> > In function `resume_execution':arch/powerpc/kernel/kprobes.c:331: undefined reference to
> > `.emulate_step'
> 
> Please compile step.o if either CONFIG_KPROBES or CONFIG_XMON is defined
> instead of adding a depency.
(This one seems to work without warning about duplicate object files or
something.)

KPROBES needs emulate_step()

arch/powerpc/kernel/built-in.o:
In function `resume_execution':arch/powerpc/kernel/kprobes.c:331: undefined reference to
`.emulate_step'

Signed-off-by: Olaf Hering <[email-masked]>

 arch/powerpc/lib/Makefile |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6.16-rc3-olh/arch/powerpc/lib/Makefile
===================================================================
--- linux-2.6.16-rc3-olh.orig/arch/powerpc/lib/Makefile
+++ linux-2.6.16-rc3-olh/arch/powerpc/lib/Makefile
@@ -12,6 +12,7 @@ obj-$(CONFIG_PPC64)	+= checksum_64.o cop
 			   memcpy_64.o usercopy_64.o mem_64.o string.o \
 			   strcase.o
 obj-$(CONFIG_PPC_ISERIES) += e2a.o
+obj-$(CONFIG_KPROBES)	+= sstep.o
 obj-$(CONFIG_XMON)	+= sstep.o
 
 ifeq ($(CONFIG_PPC64),y)