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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Maciej W. Rozycki <macro@...>, Franck Bui-Huu <vagabon.xyz@...>, <linux-arch@...>, <linux-mips@...>, Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Friday, October 12, 2007 - 1:52 pm

On Fri, Oct 12, 2007 at 07:19:38PM +0200, Adrian Bunk wrote:


gcc tends to place data such as strings or jump tables generated from
switches not into a place were it would be easily discardable.  The
latter is the reason that on MIPS we can't discard __exit functions
at all - a switch table in .rodata might be referencing discarded code
in .exit.text which makes ld fail.  When I discussed this with some gcc
people a while ago nobody really had a good suggestion to solve this.

  Ralf
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Discardable strings for init and exit sections, Maciej W. Rozycki, (Fri Oct 12, 12:50 pm)
Re: [PATCH] Discardable strings for init and exit sections, Maciej W. Rozycki, (Tue Oct 23, 1:23 pm)
Re: [PATCH] Discardable strings for init and exit sections, Ralf Baechle, (Fri Oct 12, 1:52 pm)
Re: [PATCH] Discardable strings for init and exit sections, Maciej W. Rozycki, (Tue Oct 23, 12:57 pm)