Files
mop3/amd64/link.ld
kamkow1 e077d322f4
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
Rewrite init app in C, introduce MSL (MOP3 System Library)
2026-01-04 01:11:31 +01:00

47 lines
567 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_start = .;
.bss : {
*(.bss .bss.*)
} :data
__bss_end = .;
/DISCARD/ : {
*(.eh_frame*)
*(.note .note.*)
}
}