Re: [PATCH] FRV: Fix the extern declaration of kallsyms_num_syms

From: David Howells
Date: Tue Nov 13 2007 - 12:02:12 EST


David Howells <dhowells@xxxxxxxxxx> wrote:

> > > +extern const unsigned long kallsyms_num_syms
> > > +__nongpreldata __attribute__((weak));

Rather than using __nongpreldata, I should be able to say that it's in
.rodata - which seems to be more correct anyway - and throw into a comment to
say why.

I can't quite work out, though, how the kernel build stuff gets the datum into
the kernel build. I can see there's a script, but I never see the output of
the script crop up anywhere in the build tree:-/ GDB reports, though, that
kallsyms_num_syms gets the right value.

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