Re: minor bug in get_text_init_space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Per Fransson" <perr.fransson.ml@xxxxxxxxx> wrote:

> Hi,
> 
> I believe the ARM support introduced a minor issue in the function
> get_text_init_space(). As it stands, the error "cannot determine text
> init space" can only occur when machine_type("ARM") is true. Here a
> suggested fix.
> 
> Regards,
> Per

Definitely a bug -- thanks for catching that.  

I remember looking at that ARM-support patch submission and thinking
that for maintainability/sanity purposes it should probably just be
separated out entirely for ARM.

Thanks again,
  Dave

> 
> --- a/symbols.c
> +++ b/symbols.c
> @@ -491,9 +491,9 @@ get_text_init_space(void)
> 
> ÂÂÂÂÂÂÂ if (((section = get_kernel_section(".text.init")) == NULL) &&
> ÂÂÂÂÂÂÂÂÂÂÂ ((section = get_kernel_section(".init.text")) == NULL) &&
> -ÂÂÂÂÂÂÂÂÂÂ (machine_type("ARM") && (section = get_kernel_section(".init")) == NULL)) {
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ error(WARNING, "cannot determine text init space\n");
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ return;
> +ÂÂÂÂÂÂÂÂÂÂ !(machine_type("ARM") && (section = get_kernel_section(".init")) != NULL)) {
> +ÂÂÂÂÂÂÂÂÂÂ error(WARNING, "cannot determine text init space\n");
> +ÂÂÂÂÂÂÂÂÂÂ return;
> ÂÂÂÂÂÂÂ }
> 
> ÂÂÂÂÂÂÂÂkt->stext_init = (ulong)bfd_get_section_vma(st->bfd, section);
> 
> --
> Crash-utility mailing list
> Crash-utility@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux