kernel.ld (438B)
1PHDRS { 2 text PT_LOAD FLAGS(5); /* R_E */ 3 note PT_NOTE FLAGS(0); /* ___ */ 4} 5 6SECTIONS { 7 . = 0x100000; 8 9 .text : { 10 __load_st = .; 11 *(.head) 12 *(.text) 13 } :text 14 15 .rodata : { 16 *(.rodata) 17 } :text 18 19 /* Keep build ID and PVH notes in same section */ 20 .notes : { 21 *(.note.*) 22 } :note 23 24 .data : { 25 *(.data) 26 __load_en = .; 27 } :text 28 29 .bss : { 30 *(.bss) 31 __bss_en = .; 32 } 33}