]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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 942051102bb5d2606ac06ef6ecd9ba78c7c209ed..789ad35f7e081aa218a263116efc5d563e7291c6 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 : {