2005-04-17 05:20:36 +07:00
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
|
|
|
|
|
|
|
.fini : { *(.fini) } =0x9090
|
|
|
|
_etext = .;
|
|
|
|
PROVIDE (etext = .);
|
|
|
|
|
|
|
|
. = ALIGN(4096);
|
|
|
|
_sdata = .;
|
|
|
|
PROVIDE (sdata = .);
|
|
|
|
|
|
|
|
RODATA
|
|
|
|
|
|
|
|
.unprotected : { *(.unprotected) }
|
|
|
|
. = ALIGN(4096);
|
|
|
|
PROVIDE (_unprotected_end = .);
|
|
|
|
|
|
|
|
. = ALIGN(4096);
|
2007-03-31 08:20:27 +07:00
|
|
|
.note : { *(.note.*) }
|
2007-08-31 13:56:17 +07:00
|
|
|
__ex_table : {
|
|
|
|
__start___ex_table = .;
|
|
|
|
*(__ex_table)
|
|
|
|
__stop___ex_table = .;
|
|
|
|
}
|
[PATCH] uml: fix oops related to exception table
Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Prevent the kernel from oopsing during the extable sorting, as it can do
now, because the extable is in the readonly section of the binary.
Jeff says: The exception table turned RO in 2.6.11-rc3-mm1 for some reason.
Moving it causes it to land in the writable data section of the binary.
Paolo says: This patch fixes a oops on startup, which can be easily
triggered by compiling with CONFIG_MODE_TT disabled, and STATIC_LINK either
disabled or enabled. The resulting kernel will always Oops on startup,
after printing this simple output:
I've verified, by binary search on the BitKeeper repository (synced up as
of 2.6.12-rc2), starting from the range 2.6.11-2.6.12-rc1, that this bug
shows up on BitKeeper revisions in the range [@1.1994.11.168,+inf), i.e.
starting from this:
[PATCH] lib/sort: Replace insertion sort in exception tables
Since UML does not use the exception table, it's likely that insertion sort
didn't happen to write anything on the table.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01 22:58:53 +07:00
|
|
|
|
2007-06-24 07:16:37 +07:00
|
|
|
BUG_TABLE
|
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.uml.setup.init : {
|
|
|
|
__uml_setup_start = .;
|
|
|
|
*(.uml.setup.init)
|
|
|
|
__uml_setup_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.uml.help.init : {
|
|
|
|
__uml_help_start = .;
|
|
|
|
*(.uml.help.init)
|
|
|
|
__uml_help_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.uml.postsetup.init : {
|
|
|
|
__uml_postsetup_start = .;
|
|
|
|
*(.uml.postsetup.init)
|
|
|
|
__uml_postsetup_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.init.setup : {
|
|
|
|
__setup_start = .;
|
|
|
|
*(.init.setup)
|
|
|
|
__setup_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
. = ALIGN(32);
|
2007-08-31 13:56:17 +07:00
|
|
|
.data.percpu : {
|
|
|
|
__per_cpu_start = . ;
|
|
|
|
*(.data.percpu)
|
|
|
|
__per_cpu_end = . ;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
.initcall.init : {
|
2007-08-31 13:56:17 +07:00
|
|
|
__initcall_start = .;
|
2006-10-31 13:07:14 +07:00
|
|
|
INITCALLS
|
2007-08-31 13:56:17 +07:00
|
|
|
__initcall_end = .;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.con_initcall.init : {
|
|
|
|
__con_initcall_start = .;
|
|
|
|
*(.con_initcall.init)
|
|
|
|
__con_initcall_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.uml.initcall.init : {
|
|
|
|
__uml_initcall_start = .;
|
|
|
|
*(.uml.initcall.init)
|
|
|
|
__uml_initcall_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
__init_end = .;
|
|
|
|
|
|
|
|
SECURITY_INIT
|
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.exitcall : {
|
|
|
|
__exitcall_begin = .;
|
|
|
|
*(.exitcall.exit)
|
|
|
|
__exitcall_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.uml.exitcall : {
|
|
|
|
__uml_exitcall_begin = .;
|
|
|
|
*(.uml.exitcall.exit)
|
|
|
|
__uml_exitcall_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2007-08-31 13:56:17 +07:00
|
|
|
.altinstructions : {
|
|
|
|
__alt_instructions = .;
|
|
|
|
*(.altinstructions)
|
|
|
|
__alt_instructions_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
.altinstr_replacement : { *(.altinstr_replacement) }
|
|
|
|
/* .exit.text is discard at runtime, not link time, to deal with references
|
|
|
|
from .altinstructions and .eh_frame */
|
|
|
|
.exit.text : { *(.exit.text) }
|
|
|
|
.exit.data : { *(.exit.data) }
|
|
|
|
|
2007-08-31 13:56:17 +07:00
|
|
|
.preinit_array : {
|
|
|
|
__preinit_array_start = .;
|
|
|
|
*(.preinit_array)
|
|
|
|
__preinit_array_end = .;
|
|
|
|
}
|
|
|
|
.init_array : {
|
|
|
|
__init_array_start = .;
|
|
|
|
*(.init_array)
|
|
|
|
__init_array_end = .;
|
|
|
|
}
|
|
|
|
.fini_array : {
|
|
|
|
__fini_array_start = .;
|
|
|
|
*(.fini_array)
|
|
|
|
__fini_array_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
. = ALIGN(4096);
|
2007-08-31 13:56:17 +07:00
|
|
|
.init.ramfs : {
|
|
|
|
__initramfs_start = .;
|
|
|
|
*(.init.ramfs)
|
|
|
|
__initramfs_end = .;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* Sections to be discarded */
|
|
|
|
/DISCARD/ : {
|
|
|
|
*(.exitcall.exit)
|
|
|
|
}
|
|
|
|
|