Re: [PATCH 2/4] Core support for --combine -fwhole-program

Adrian Bunk
2006-08-24T21:33:34Z

On Thu, Aug 24, 2006 at 04:26:07PM +0100, David Woodhouse wrote:
>...
> index 0dfb794..725e5df 100644
> --- a/include/linux/module.h
> +++ b/include/linux/module.h
>...
> @@ -470,11 +472,12 @@ void module_add_driver(struct module *,
> void module_remove_driver(struct device_driver *);
>
> #else /* !CONFIG_MODULES... */
> -#define EXPORT_SYMBOL(sym)
> -#define EXPORT_SYMBOL_GPL(sym)
> -#define EXPORT_SYMBOL_GPL_FUTURE(sym)
> -#define EXPORT_UNUSED_SYMBOL(sym)
> -#define EXPORT_UNUSED_SYMBOL_GPL(sym)
> +
> +#define EXPORT_SYMBOL(sym) extern typeof(sym) sym __global
> +#define EXPORT_SYMBOL_GPL(sym) EXPORT_SYMBOL(sym)
> +#define EXPORT_SYMBOL_GPL_FUTURE(sym) EXPORT_SYMBOL(sym)
> +#define EXPORT_UNUSED_SYMBOL(sym) EXPORT_SYMBOL(sym)
> +#define EXPORT_UNUSED_SYMBOL_GPL(sym) EXPORT_SYMBOL(sym)
>...

If a "build everything except for assembler files at once" approach is
possible, it should be possible to revert this and get even further
savings.

> dwmw2

cu
Adrian

--

Gentoo kernels are 42 times more popular than SUSE kernels among
KLive users (a service by SUSE contractor Andrea Arcangeli that
gathers data about kernels from many users worldwide).

There are three kinds of lies: Lies, Damn Lies, and Statistics.
Benjamin Disraeli