misc: Sanitise decompressor linker script

This commit is contained in:
mintsuki 2022-05-20 06:12:17 +02:00
parent 7c7dd0d2b4
commit 76be53139a

View File

@ -2,6 +2,12 @@ OUTPUT_FORMAT(elf32-i386)
OUTPUT_ARCH(i386) OUTPUT_ARCH(i386)
ENTRY(_start) ENTRY(_start)
PHDRS
{
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ;
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ;
}
SECTIONS SECTIONS
{ {
. = 0x70000; . = 0x70000;
@ -9,36 +15,21 @@ SECTIONS
.text : { .text : {
*(.entry) *(.entry)
*(.text .text.*) *(.text .text.*)
} } :text
.rodata : { .rodata : {
*(.rodata .rodata.*) *(.rodata .rodata.*)
}
.data : {
*(.data .data.*) *(.data .data.*)
} } :data
.bss : { .bss : {
bss_begin = .; bss_begin = .;
*(COMMON) *(COMMON)
*(.bss .bss.*) *(.bss .bss.*)
bss_end = .; bss_end = .;
} } :data
.symtab 0 : {
*(.symtab)
}
.strtab 0 : {
*(.strtab)
}
.shstrtab 0 : {
*(.shstrtab)
}
/DISCARD/ : { /DISCARD/ : {
*(*) *.o(*)
} }
} }