Mercurial > hg > Members > mitsuki > haribote
view os.ls @ 0:1a23828953f2
haribote day 4
author | mir3636 |
---|---|
date | Wed, 03 Oct 2018 21:06:50 +0900 |
parents | |
children | 70754edc1f50 |
line wrap: on
line source
/* os.ls */ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(asmhead) SECTIONS { .head 0x0 : { LONG(64 * 1024) /* 0 : size(stack+.data+heap) */ LONG(0x69726148) /* 4 : "Hari" */ LONG(0) /* 8 : mmarea*/ LONG(0x310000) /* 12 : stack初期値 & .data転送先 */ LONG(SIZEOF(.data)) /* 16 : size of .data */ LONG(LOADADDR(.data)) /* 20 : size of .data */ LONG(0xE9000000) /* 24 : E9000000 */ LONG(HariMain - 0x20) /* 28 : entry - 0x20 */ LONG(0) /* 32 : heap領域開始アドレス */ } . = 0xd18d; .text : {*(.text)} .data 0x310000 : AT ( ADDR(.text) + SIZEOF(.text) ) { *(.data) *(.rodata*) *(.bss) } /DISCARD/ : { *(.eh_frame) } }