2020-09-06 04:35:32 +03:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
2021-12-19 03:08:34 +03:00
|
|
|
OUTPUT_ARCH(i386)
|
2020-09-18 23:15:27 +03:00
|
|
|
ENTRY(_start)
|
2020-09-06 04:35:32 +03:00
|
|
|
|
2022-05-20 07:12:17 +03:00
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ;
|
|
|
|
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ;
|
|
|
|
}
|
|
|
|
|
2020-09-06 04:35:32 +03:00
|
|
|
SECTIONS
|
|
|
|
{
|
2020-09-06 06:15:55 +03:00
|
|
|
. = 0x70000;
|
2020-09-06 04:35:32 +03:00
|
|
|
|
|
|
|
.text : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.entry)
|
|
|
|
*(.text .text.*)
|
2022-05-20 07:12:17 +03:00
|
|
|
} :text
|
2020-09-06 04:35:32 +03:00
|
|
|
|
|
|
|
.rodata : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.rodata .rodata.*)
|
|
|
|
*(.data .data.*)
|
2022-05-20 07:12:17 +03:00
|
|
|
} :data
|
2020-09-06 04:35:32 +03:00
|
|
|
|
|
|
|
.bss : {
|
|
|
|
bss_begin = .;
|
|
|
|
*(COMMON)
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.bss .bss.*)
|
2020-09-06 04:35:32 +03:00
|
|
|
bss_end = .;
|
2022-05-20 07:12:17 +03:00
|
|
|
} :data
|
2021-05-31 01:32:43 +03:00
|
|
|
|
2020-09-25 23:36:26 +03:00
|
|
|
/DISCARD/ : {
|
2022-05-20 07:12:17 +03:00
|
|
|
*.o(*)
|
2020-09-25 23:36:26 +03:00
|
|
|
}
|
2020-09-06 04:35:32 +03:00
|
|
|
}
|