lkml.org 
[lkml]   [2009]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RFC PATCH] linker script: unify usage of discard definition
On Fri, Jul 3, 2009 at 19:37, Tejun Heo wrote:
> +/*
> + * DISCARDS must be the last and archs which want some of the default
> + * discarded sections in the kernel image can do so by putting them in
> + * earlier section definition.
> + */
>  #define DISCARDS                                                       \
>        /DISCARD/ : {                                                   \
>        EXIT_TEXT                                                       \
>        EXIT_DATA                                                       \
> -       *(.exitcall.exit)                                               \
> +       EXIT_CALL                                                       \
>        *(.discard)                                                     \
>        }

i would add to the comment that some people want to discard exit
text/data at runtime rather than link time due to cross-section
references such as alt instructions, bug table, eh_frame, etc...

otherwise, looks good to me. thanks !

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
\
 
 \ /
  Last update: 2009-07-04 07:55    [W:0.105 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site