nim-kernel-helloworld/linker.ld

14 lines
353 B
Plaintext
Raw Normal View History

2023-06-27 10:02:23 -07:00
/* All this linker script does is allocate memory and */
/* prepend the QEMU boot stub to our program */
ENTRY(_start)
SECTIONS {
. = 0x40000000;
.startup . : { build/boot.o(.text) }
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss COMMON) }
. = ALIGN(8);
. += 0x1000; /* 4kB of stack memory */
stack_top = .;
}