SoraOS/linker.ld
2025-11-14 22:20:27 +00:00

32 lines
564 B
Plaintext

ENTRY(_start);
FORMAT(elf64-x86-64);
SECTIONS
{
/* Set the location counter to 0x100000 (1MB) */
. = 0x100000;
/* Define the .text section at the current location */
.text :
{
/* Put all .text sections from all input files here */
*(.text)
}
/* Define the .data section immediately after .text */
.data :
{
/* Put all .data sections from all input files here */
*(.data)
}
/* Define the .bss section immediately after .data */
.bss :
{
/* Put all .bss sections from all input files here */
*(.bss)
}
/* End of the linker script */
}