lkml.org 
[lkml]   [2009]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/7] linker script: throw away .discard section
Mike Frysinger wrote:
> On Wed, May 20, 2009 at 03:37, Tejun Heo wrote:
>> x86 throws away .discard section but no other archs do. Also,
>> .discard is not thrown away while linking modules. Make every arch
>> and module linking throw it away. This will be used to define dummy
>> variables for percpu declarations and definitions.
>
> seems like a good time to introduce a common DISCARD define to
> include/asm-generic/vmlinux.lds.h. considering multiple /DISCARD/
> entries are allowed in a linker script, the define should be pretty
> straightforward:
> #define DISCARDS \
> /DISCARD/ : { \
> EXIT_TEXT \
> EXIT_DATA \
> *(.exitcall.exit) \
> *(.discard) \
> }

Hmmm... indeed, that would be nice. I'll update the patch.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2009-05-20 10:11    [W:0.120 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site