Commit 63482aaa authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 34973379
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);