| 
									
										
										
										
											2010-02-26 22:37:53 +01:00
										 |  |  | #include <asm-generic/vmlinux.lds.h> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef CONFIG_64BIT | 
					
						
							|  |  |  | OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") | 
					
						
							|  |  |  | OUTPUT_ARCH(s390:64-bit) | 
					
						
							|  |  |  | #else | 
					
						
							|  |  |  | OUTPUT_FORMAT("elf32-s390", "elf32-s390", "elf32-s390") | 
					
						
							| 
									
										
										
										
											2012-10-18 11:11:01 +02:00
										 |  |  | OUTPUT_ARCH(s390:31-bit) | 
					
						
							| 
									
										
										
										
											2010-02-26 22:37:53 +01:00
										 |  |  | #endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ENTRY(startup) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SECTIONS | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	/* Be careful parts of head_64.S assume startup_32 is at | 
					
						
							|  |  |  | 	 * address 0. | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	. = 0;
 | 
					
						
							|  |  |  | 	.head.text : { | 
					
						
							|  |  |  | 		_head = . ;
 | 
					
						
							|  |  |  | 		HEAD_TEXT | 
					
						
							|  |  |  | 		_ehead = . ;
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.rodata.compressed : { | 
					
						
							|  |  |  | 		*(.rodata.compressed) | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.text :	{ | 
					
						
							|  |  |  | 		_text = .;	/* Text */
 | 
					
						
							|  |  |  | 		*(.text) | 
					
						
							|  |  |  | 		*(.text.*) | 
					
						
							|  |  |  | 		_etext = . ;
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.rodata : { | 
					
						
							|  |  |  | 		_rodata = . ;
 | 
					
						
							|  |  |  | 		*(.rodata)	 /* read-only data */ | 
					
						
							|  |  |  | 		*(.rodata.*) | 
					
						
							|  |  |  | 		_erodata = . ;
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.data :	{ | 
					
						
							|  |  |  | 		_data = . ;
 | 
					
						
							|  |  |  | 		*(.data) | 
					
						
							|  |  |  | 		*(.data.*) | 
					
						
							|  |  |  | 		_edata = . ;
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	. = ALIGN(256);
 | 
					
						
							|  |  |  | 	.bss : { | 
					
						
							|  |  |  | 		_bss = . ;
 | 
					
						
							|  |  |  | 		*(.bss) | 
					
						
							|  |  |  | 		*(.bss.*) | 
					
						
							|  |  |  | 		*(COMMON) | 
					
						
							|  |  |  | 		. = ALIGN(8);	/* For convenience during zeroing */
 | 
					
						
							|  |  |  | 		_ebss = .;
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	_end = .;
 | 
					
						
							|  |  |  | } |