Re: history of extratext sections?

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

 



On 10/24/07, Robin Getz <[email protected]> wrote:
>  - make the check dependant on extratext being populated
> ===================================================================
> --- linux-2.6.x/kernel/kallsyms.c       (revision 3760)
> +++ linux-2.6.x/kernel/kallsyms.c       (working copy)
> @@ -51,7 +51,8 @@
>  static inline int is_kernel_extratext(unsigned long addr)
>  {
>         if (addr >= (unsigned long)_sextratext
> -           && addr <= (unsigned long)_eextratext)
> +           && addr <= (unsigned long)_eextratext
> +           && _sextratext && _eextratext)
>                 return 1;
>         return 0;
>  }

i think you'd want:
if (_sextratext && _eextratext &&
  ... everything else ...
-mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux