This repository has been archived on 2021-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
OS/pintos-env/pintos/threads/build/threads/kernel.lds.s

20 lines
462 B
ArmAsm

OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH("i386")
ENTRY(start)
SECTIONS
{
_start = 0xc0000000 + 0x20000;
. = _start + SIZEOF_HEADERS;
.text : { *(.start) *(.text) } = 0x90
.rodata : { *(.rodata) *(.rodata.*)
. = ALIGN(0x1000);
_end_kernel_text = .; }
.data : { *(.data)
_signature = .; LONG(0xaa55aa55) }
_start_bss = .;
.bss : { *(.bss) }
_end_bss = .;
_end = .;
ASSERT (_end - _start <= 512K, "Kernel image is too big.")
}