lkml.org 
[lkml]   [2009]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] also discard .*init sections after module initialization
>>> Tim Abbott <tabbott@ksplice.com> 06.07.09 17:55 >>>
>On Wed, 1 Jul 2009, Jan Beulich wrote:
>> Why? .*exit sections deal with device/memory/CPU hot remove, which is
>> orthogonal to module unload.
>
>For the core kernel, the .devinit sections are currently being squashed
>into either the .data section or the .init.data section depending on
>whether hotplug is enabled using the vmlinux linker scripts. Can we use
>the same approach for modules (i.e. have a module linker script that does
>this)? It seems that would avoid having two duplicate mechanisms for
>doing the same thing, one in the module loader and one in the core
>kernel's linker scripts.

I'd have to play with this a little, as I'm not sure ld -r can actually do what
you're suggesting.

Jan



\
 
 \ /
  Last update: 2009-07-07 08:31    [W:0.062 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site