Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86384d54 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Discard .exit.text at linktime.



This fixes fairly unobvious breakage of various drivers.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5b1d221e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -109,9 +109,6 @@ SECTIONS
  .con_initcall.init : { *(.con_initcall.init) }
  __con_initcall_end = .;
  SECURITY_INIT
    /* .exit.text is discarded at runtime, not link time, to deal with
     references from .rodata */
  .exit.text : { *(.exit.text) }
  . = ALIGN(_PAGE_SIZE);
  __initramfs_start = .;
  .init.ramfs : { *(.init.ramfs) }
@@ -139,6 +136,7 @@ SECTIONS

  /* Sections to be discarded */
  /DISCARD/ : {
	*(.exit.text)
        *(.exit.data)
        *(.exitcall.exit)