]> sourceware.org Git - systemtap.git/commitdiff
Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 27 Nov 2009 22:33:51 +0000 (01:33 +0300)
committerFrank Ch. Eigler <fche@elastic.org>
Tue, 1 Dec 2009 16:57:33 +0000 (11:57 -0500)
Currently staprun fails at send_relocation_kernel(), this is because
ppc32 doesn't have ".__start" symbol. I think we should use _stext,
just as other arches.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
runtime/staprun/staprun.c

index 078be4cf5d226a9127f1b51109dbe1d9427ab51d..5bd5163a059a0541432f8aa7de2a7abdceb3c19b 100644 (file)
@@ -372,7 +372,7 @@ int send_relocation_kernel ()
               free (line); line=NULL;
               if (symbol == NULL) continue; /* OOM? */
 
-#ifdef __powerpc__
+#ifdef __powerpc64__
 #define KERNEL_RELOC_SYMBOL ".__start"
 #else
 #define KERNEL_RELOC_SYMBOL "_stext"
This page took 0.027002 seconds and 5 git commands to generate.