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
|
|
|
|
{
|
2024-05-27 01:18:14 +03:00
|
|
|
text PT_LOAD FLAGS(0x05);
|
|
|
|
rodata PT_LOAD FLAGS(0x04);
|
|
|
|
data PT_LOAD FLAGS(0x06);
|
2022-05-20 07:12:17 +03:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2023-09-11 14:49:14 +03:00
|
|
|
.rodata : {
|
|
|
|
*(.rodata .rodata.*)
|
|
|
|
} :rodata
|
|
|
|
|
2022-08-12 14:10:36 +03:00
|
|
|
.data : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.data .data.*)
|
2022-05-20 07:12:17 +03:00
|
|
|
} :data
|
2020-09-06 04:35:32 +03:00
|
|
|
|
|
|
|
.bss : {
|
|
|
|
bss_begin = .;
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.bss .bss.*)
|
2023-07-15 02:10:06 +03:00
|
|
|
*(COMMON)
|
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-08-15 17:22:56 +03:00
|
|
|
*(.eh_frame)
|
2022-08-12 14:10:36 +03:00
|
|
|
*(.note .note.*)
|
2020-09-25 23:36:26 +03:00
|
|
|
}
|
2020-09-06 04:35:32 +03:00
|
|
|
}
|