blob: 25a4ca9c85901ac6ea80160b3ac1ea0bc66c6b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
OUTPUT_FORMAT("elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
PHDRS
{
code PT_LOAD FLAGS(5);
rodata PT_LOAD FLAGS(4);
data PT_LOAD FLAGS(6);
}
SECTIONS
{
. = 0x400000 + SIZEOF_HEADERS;
.text :
{
*(.text .text.*)
} : code
.rodata :
{
*(.rodata .rodata.*)
} : rodata
.data :
{
*(.data .data.*)
} : data
.bss :
{
*(.bss .bss.*)
*(COMMON)
} : data
/DISCARD/ :
{
*(.note.gnu.property)
}
}
|