Re: [RFC 1/1] vmlinux.lds.h: Add new SECTION() macro

From: Sam Ravnborg
Date: Fri May 16 2014 - 06:12:37 EST


On Thu, May 15, 2014 at 02:25:58PM -0700, Geoff Levand wrote:
> Add a new preprocessor macro SECTION() to vmlinux.lds.h that defines a
> linker script output section with the section attributes commonly used,
> and replace all occurrences of equivalent descriptions in vmlinux.lds.h
> with the new macro.

Looks good - but the name is too generic.
Use OUTPUT_SECTION() as you suggest in the comment below.

If you walk through all linker scripts then keep an eay out for
stuff where the generic stuff can be used.
And see if there is something else that really belongs in asm-generic.

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/