Messages in this thread | | | From | Mike Frysinger <> | Date | Sat, 4 Jul 2009 01:51:04 -0400 | Subject | Re: [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
| |