Ver código fonte

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>
Jesper Nilsson 15 anos atrás
pai
commit
7c8a25b544
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      arch/cris/kernel/vmlinux.lds.S

+ 10 - 0
arch/cris/kernel/vmlinux.lds.S

@@ -86,6 +86,16 @@ SECTIONS
 	}
 	SECURITY_INIT
 
+	/* .exit.text is discarded at runtime, not link time,
+	 * to deal with references from __bug_table
+	 */
+	.exit.text : {
+		EXIT_TEXT
+	}
+	.exit.data : {
+		EXIT_DATA
+	}
+
 #ifdef CONFIG_ETRAX_ARCH_V10
 #ifdef CONFIG_BLK_DEV_INITRD
 	.init.ramfs : {