[Top] [All Lists]

Re: [PATCH] Discardable strings for init and exit sections

To: Adrian Bunk <>
Subject: Re: [PATCH] Discardable strings for init and exit sections
From: Sam Ravnborg <>
Date: Tue, 23 Oct 2007 19:25:30 +0200
Cc: "Maciej W. Rozycki" <>, Ralf Baechle <>, Franck Bui-Huu <>,,, Andrew Morton <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <> <>
User-agent: Mutt/
> As long as the modpost warnings are just warnings they will often be 
> missed at compile time.

The plans for the modpost warnings are more or less:
- Let all __init, __cpuinit, __meminit etc use dedicated sections
no matter the actual configuration.
Use ifdeffery in the .lds files to place stuff in the correct final
Teach modpost about the illegal dependencies.

When we then are back to almost warning free with allmodconfig for
the most important platfroms (read: or in reality the ones I have a
tool-chain for and which care to make allmodconfig buildable in mainline)
then modpost will generate errors instead of warnings to force people
to fix all the NEW errors they introuduce.

A variable will convert the errors to warnings for use in certain situations.

But I am not familiar enough with ELF format to extend the current checking
as suggested by people a few times. Maybe someone else can assist here.



<Prev in Thread] Current Thread [Next in Thread>