rulimine/decompressor/linker.ld

36 lines
504 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
.rodata : {
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/ : {
*.o(*)
}
}