linker.ld (751B)
1 OUTPUT_FORMAT("elf32-littlearm") 2 OUTPUT_ARCH(arm) 3 ENTRY(_start) 4 SECTIONS 5 { 6 _ram_start = 0x80000000; 7 _ram_end = 0xbfffffff; 8 9 .text 0x82000000 : 10 { 11 _kernel_bin_start = .; 12 kernel/start.o (.text) 13 *(.text) 14 } 15 16 .data : ALIGN(4096) 17 { 18 *(.data) 19 } 20 21 .init_array : ALIGN(4096) 22 { 23 _kernel_ctors_start = .; 24 *(.init_array) 25 _kernel_ctors_end = .; 26 } 27 28 .rodata : ALIGN(4096) 29 { 30 *(.rodata) 31 } 32 33 .bss : ALIGN(4096) 34 { 35 _kernel_bss_start = .; 36 *(.bss) 37 } 38 39 . = ALIGN(4096); 40 _kernel_bss_end = .; 41 42 _kernel_heap_start = .; 43 . = . + 0x10000000; 44 _kernel_heap_end = .; 45 46 . = . + 0x2000; 47 _svc_stack_top = .; 48 . = . + 0x2000; 49 _fiq_stack_top = .; 50 . = . + 0x2000; 51 _irq_stack_top = .; 52 . = . + 0x2000; 53 _abort_stack_top = .; 54 55 _kernel_bin_end = .; 56 }