diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 14:10:04 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 14:10:04 +0200 |
commit | 7c8a25b544c1659ad57de2394006fdd449325161 (patch) | |
tree | fa3f0584058b155fc028a2ac6a1f87aa408ad565 /arch/cris | |
parent | CRIS: Add cache aligned and read mostly data sections (diff) | |
download | linux-7c8a25b544c1659ad57de2394006fdd449325161.tar.xz linux-7c8a25b544c1659ad57de2394006fdd449325161.zip |
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>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/kernel/vmlinux.lds.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/cris/kernel/vmlinux.lds.S b/arch/cris/kernel/vmlinux.lds.S index 942051102bb5..789ad35f7e08 100644 --- a/arch/cris/kernel/vmlinux.lds.S +++ b/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 : { |