Messages in this thread | | | Subject | Re: Bloatwatch 2.6.28-rc1: i8042 DMI lookup tables | From | David Woodhouse <> | Date | Sat, 25 Oct 2008 09:20:25 +0100 |
| |
On Fri, 2008-10-24 at 22:31 -0500, Matt Mackall wrote: > Ideally, we'd find a way to (a) store variable-length string constants > in init sections and (b) teach modpost about following pointers.
Doing (b) shouldn't be _so_ hard. Modpost already trawls through the relocations, looking for naughty ones. Making it actually _do_ them when it needs to shouldn't be impossible.
> Something like this would work inside code but sadly not inside > declarations: > > #define ISTR(s) ({static char c[] __attribute__ ((section("__initdata__"))) = s;c;})
Yeah, I played with that for a while, but gave up.
-- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation
| |