This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH 8/8] Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32
- From: Anton Vorontsov <avorontsov at ru dot mvista dot com>
- To: systemtap at sourceware dot org
- Cc: linuxppc-dev at ozlabs dot org
- Date: Sat, 28 Nov 2009 01:33:51 +0300
- Subject: [PATCH 8/8] Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32
- References: <20091127223251.GA17065@oksana.dev.rtsoft.ru>
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index 078be4c..5bd5163 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -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"
--
1.6.3.3