mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:02:44 +00:00 
			
		
		
		
	 cbdf4b575d
			
		
	
	
		cbdf4b575d
		
	
	
	
	
		
			
			This moves Kernel/Prekernel/linker.ld unchanged to Kernel/Prekernel/Arch/aarch64 and Kernel/Prekernel/Arch/x86. The aarch64 will change in a future commit. No behavior change.
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			710 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			710 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| ENTRY(start)
 | |
| 
 | |
| PHDRS
 | |
| {
 | |
|   boot_text PT_LOAD ;
 | |
|   text PT_LOAD ;
 | |
|   data PT_LOAD ;
 | |
|   bss PT_LOAD ;
 | |
| }
 | |
| 
 | |
| SECTIONS
 | |
| {
 | |
|     . = 0x00100000;
 | |
| 
 | |
|     start_of_prekernel_image = .;
 | |
| 
 | |
|     .boot_text ALIGN(4K) : AT (ADDR(.boot_text))
 | |
|     {
 | |
|         KEEP(*(.multiboot))
 | |
|     } :boot_text
 | |
| 
 | |
|     .text ALIGN(4K) : AT (ADDR(.text))
 | |
|     {
 | |
|         start_of_prekernel_text = .;
 | |
|         *(.text*)
 | |
|     } :text
 | |
| 
 | |
|     .rodata ALIGN(4K) : AT (ADDR(.rodata))
 | |
|     {
 | |
|         *(.rodata*)
 | |
|     } :data
 | |
| 
 | |
|     .data ALIGN(4K) : AT (ADDR(.data))
 | |
|     {
 | |
|         *(.data*)
 | |
|     } :data
 | |
| 
 | |
|     .bss ALIGN(4K) (NOLOAD) : AT (ADDR(.bss))
 | |
|     {
 | |
|         *(COMMON)
 | |
|         *(.bss)
 | |
|         *(.stack)
 | |
|         *(.page_tables)
 | |
|     } :bss
 | |
| 
 | |
|     end_of_prekernel_image = .;
 | |
| }
 |