limine/decompressor/linker.ld

36 lines
512 B
Plaintext
Raw Normal View History

OUTPUT_FORMAT(elf32-i386)
2021-12-19 03:08:34 +03:00
OUTPUT_ARCH(i386)
ENTRY(_start)
PHDRS
{
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ;
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ;
}
SECTIONS
{
. = 0x70000;
.text : {
2021-12-19 03:08:34 +03:00
*(.entry)
*(.text .text.*)
} :text
2022-08-12 14:10:36 +03:00
.data : {
2021-12-19 03:08:34 +03:00
*(.rodata .rodata.*)
*(.data .data.*)
} :data
.bss : {
bss_begin = .;
*(COMMON)
2021-12-19 03:08:34 +03:00
*(.bss .bss.*)
bss_end = .;
} :data
/DISCARD/ : {
2022-08-12 14:10:36 +03:00
*(.note .note.*)
}
}