Files
mop3/amd64/link.ld
kamkow1 e52268cd8e
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
First Hello world syscall
2026-01-03 02:04:09 +01:00

43 lines
529 B
Plaintext

OUTPUT_FORMAT(elf64-x86-64)
ENTRY(_start)
PHDRS {
text PT_LOAD;
rodata PT_LOAD;
data PT_LOAD;
}
SECTIONS {
. = 0x0000500000000000;
.text : {
*(.text .text.*)
} :text
. = ALIGN(CONSTANT(MAXPAGESIZE));
.rodata : {
*(.rodata .rodata.*)
} :rodata
.note.gnu.build-id : {
*(.note.gnu.build-id)
} :rodata
. = ALIGN(CONSTANT(MAXPAGESIZE));
.data : {
*(.data .data.*)
} :data
.bss : {
*(.bss .bss.*)
} :data
/DISCARD/ : {
*(.eh_frame*)
*(.note .note.*)
}
}