Re: [RFC PATCH] linker script: unify usage of discard definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 exittext/data at runtime rather than link time due to cross-sectionreferences such as alt instructions, bug table, eh_frame, etc...
otherwise, looks good to me.  thanks !
Acked-by: Mike Frysinger <vapier@xxxxxxxxxx>-mike��.n��������+%������w��{.n�����{�����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux