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

Dave Anderson anderson at redhat.com
Fri Jan 13 19:49:28 UTC 2012



----- Original Message -----
> 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

Thanks Rabin -- queued for crash-6.0.3.

Dave
 
> 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