CRIS: Discard exit.text and .data at runtime
authorJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 12:10:04 +0000 (14:10 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 12:10:04 +0000 (14:10 +0200)
This allows us to handle references from __bug_table.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/kernel/vmlinux.lds.S

index 9420511..789ad35 100644 (file)
@@ -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 : {