| 
									
										
										
										
											2005-04-16 15: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 03:20:27 +02:00
										 |  |  |   .note : { *(.note.*) } | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  |   EXCEPTION_TABLE(0) | 
					
						
							| 
									
										
											  
											
												[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 08:58:53 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-06-23 17:16:37 -07:00
										 |  |  |   BUG_TABLE | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .uml.setup.init : { | 
					
						
							|  |  |  | 	__uml_setup_start = .;
 | 
					
						
							|  |  |  | 	*(.uml.setup.init) | 
					
						
							|  |  |  | 	__uml_setup_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .uml.help.init : { | 
					
						
							|  |  |  | 	__uml_help_start = .;
 | 
					
						
							|  |  |  | 	*(.uml.help.init) | 
					
						
							|  |  |  | 	__uml_help_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .uml.postsetup.init : { | 
					
						
							|  |  |  | 	__uml_postsetup_start = .;
 | 
					
						
							|  |  |  | 	*(.uml.postsetup.init) | 
					
						
							|  |  |  | 	__uml_postsetup_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .init.setup : { | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  | 	INIT_SETUP(0) | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  |   PERCPU(32) | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	 | 
					
						
							|  |  |  |   .initcall.init : { | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  | 	INIT_CALLS | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .con_initcall.init : { | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  | 	CON_INITCALL | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .uml.initcall.init : { | 
					
						
							|  |  |  | 	__uml_initcall_start = .;
 | 
					
						
							|  |  |  | 	*(.uml.initcall.init) | 
					
						
							|  |  |  | 	__uml_initcall_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  |   __init_end = .;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   SECURITY_INIT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .exitcall : { | 
					
						
							|  |  |  | 	__exitcall_begin = .;
 | 
					
						
							|  |  |  | 	*(.exitcall.exit) | 
					
						
							|  |  |  | 	__exitcall_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .uml.exitcall : { | 
					
						
							|  |  |  | 	__uml_exitcall_begin = .;
 | 
					
						
							|  |  |  | 	*(.uml.exitcall.exit) | 
					
						
							|  |  |  | 	__uml_exitcall_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   . = ALIGN(4);
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .altinstructions : { | 
					
						
							|  |  |  | 	__alt_instructions = .;
 | 
					
						
							|  |  |  | 	*(.altinstructions) | 
					
						
							|  |  |  | 	__alt_instructions_end = .;
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15: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-30 23: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-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |    . = ALIGN(4096);
 | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   .init.ramfs : { | 
					
						
							| 
									
										
										
										
											2009-09-24 10:36:20 -04:00
										 |  |  | 	INIT_RAM_FS | 
					
						
							| 
									
										
										
										
											2007-08-30 23:56:17 -07:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 |