Re: [PATCH 15/15] modpost: convert modpost to use HEAD_TEXT_SECTION macro.

From: Sam Ravnborg
Date: Sun Apr 26 2009 - 07:28:44 EST


On Sat, Apr 25, 2009 at 10:11:10PM -0400, Tim Abbott wrote:
> Using the HEAD_TEXT_SECTION macro in modpost requires including a few
> more files from the linux headers.
>
> The entry in head_sections[] ".head.text*" should be ".head.text",
> since only that section name is actually used by any architectures. I
> corrected this since preserving this over-broad pattern would have
> involved some string concatination nastiness.

I have seen linkers that added a number after the section names
in certain situations. Often this is due to mix of sections
with different flags ("ax" versus no "ax").
This is the background for the wildcard.

With your patchset we should not see any such users - but we
should then warn if they showed up anyway if we do not silently
support them.

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