Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63482aaadacbc7e125d672bf8d8f2d39c13a49ed Commit: 63482aaadacbc7e125d672bf8d8f2d39c13a49ed Parent: 3497337946415849a2e4473ec2e9f0d2a6624b23 Author: Paul Mundt <[EMAIL PROTECTED]> AuthorDate: Tue Oct 9 15:23:02 2007 +0900 Committer: Paul Mundt <[EMAIL PROTECTED]> CommitDate: Tue Oct 9 15:23:02 2007 +0900
sh: Discard .exit.text/.exit.data at runtime. These were previously discarded at link time, though as with MIPS we keep them around until runtime to satisfy .rodata references. Signed-off-by: Paul Mundt <[EMAIL PROTECTED]> --- arch/sh/kernel/vmlinux.lds.S | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S index 3d16d6e..6d5abba 100644 --- a/arch/sh/kernel/vmlinux.lds.S +++ b/arch/sh/kernel/vmlinux.lds.S @@ -91,6 +91,11 @@ SECTIONS __con_initcall_end = .; SECURITY_INIT + /* .exit.text is discarded at runtime, not link time, to deal with + references from .rodata */ + .exit.text : { *(.exit.text) } + .exit.data : { *(.exit.data) } + #ifdef CONFIG_BLK_DEV_INITRD . = ALIGN(PAGE_SIZE); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html