Commit 7c8a25b544c1659ad57de2394006fdd449325161

Authored by Jesper Nilsson
1 parent dcb313c23f

CRIS: Discard exit.text and .data at runtime

This allows us to handle references from __bug_table.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>

Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff

arch/cris/kernel/vmlinux.lds.S
... ... @@ -86,6 +86,16 @@
86 86 }
87 87 SECURITY_INIT
88 88  
  89 + /* .exit.text is discarded at runtime, not link time,
  90 + * to deal with references from __bug_table
  91 + */
  92 + .exit.text : {
  93 + EXIT_TEXT
  94 + }
  95 + .exit.data : {
  96 + EXIT_DATA
  97 + }
  98 +
89 99 #ifdef CONFIG_ETRAX_ARCH_V10
90 100 #ifdef CONFIG_BLK_DEV_INITRD
91 101 .init.ramfs : {