[Crash-utility] [PATCH] ARM now uses .init.text

Rabin Vincent rabin at rab.in
Fri Jan 13 19:21:36 UTC 2012


Recent ARM kernels (since
http://git.kernel.org/linus/1604d79d372bcf0cf1aebcbdee251bd0f3d56665),
use .init.text instead of .init for the init text. 

The patch below handles this.

Rabin

diff --git a/symbols.c b/symbols.c
index a68b585..f836101 100755
--- a/symbols.c
+++ b/symbols.c
@@ -480,14 +480,14 @@ no_debugging_data(int error_type)
 void
 get_text_init_space(void)
 {
-	asection *section;
+	asection *section = NULL;
 
 	if (pc->flags & SYSMAP)
 		return;
 
 	if (machine_type("ARM"))
 		section = get_kernel_section(".init");
-	else if ((section = get_kernel_section(".text.init")) == NULL) 
+	if (!section && (section = get_kernel_section(".text.init")) == NULL)
 		section = get_kernel_section(".init.text");
 	if (!section) {
 		error(WARNING, "cannot determine text init space\n");




More information about the Crash-utility mailing list