Re: history of extratext sections?

From: Mike Frysinger
Date: Wed Oct 24 2007 - 12:20:15 EST


On 10/24/07, Robin Getz <rgetz@xxxxxxxxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/