Re: module scanning in kgdb 2.x

From: Rusty Russell
Date: Fri Mar 19 2004 - 18:53:06 EST


On Sat, 2004-03-20 at 02:06, Amit S. Kale wrote:
> On Wednesday 17 Mar 2004 2:48 am, Rusty Russell wrote:
> > Why not just set the section strings to SHF_ALLOC rather than copying
> > (and possibly truncating) the names into your struct mod_section?
> > struct mod_section is then simply void *addr; char *name;
>
> How can I do that? Do I have to use objcopy on module files for this purpose?

That'd be one way. But I was thinking you should add it in the loading
code the way CONFIG_KALLSYMS does for some other sections.

Cheers,
Rusty.
--
Anyone who quotes me in their signature is an idiot -- Rusty Russell

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