-
Notifications
You must be signed in to change notification settings - Fork 0
/
memtest_shared.lds
62 lines (57 loc) · 1.21 KB
/
memtest_shared.lds
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* For historycal reasons... */
ENTRY(startup_32);
SECTIONS {
. = 0;
.text : {
_start = .;
*(.text)
*(.text.*)
*(.plt)
_etext = . ;
} = 0x9090
.rodata : {
*(.rodata)
*(.rodata.*)
}
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
. = ALIGN(16);
_dynamic = .;
.dynamic : { *(.dynamic) }
.rela.text : { *(.rela.text .rela.text.*) }
.rela.rodata : { *(.rela.rodata .rela.rodata.*) }
.rela.data : { *(.rela.data .rela.data.*) }
.rela.got : { *(.rela.got .rela.got.*) }
.rela.plt : { *(.rela.plt .rela.plt.*) }
.rel.text : { *(.rel.text .rel.text.*) }
.rel.rodata : { *(.rel.rodata .rel.rodata.*) }
.rel.data : { *(.rel.data .rel.data.*) }
.rel.got : { *(.rel.got .rel.got.*) }
.rel.plt : { *(.rel.plt .rel.plt.*) }
. = ALIGN(4);
.data : {
_data = .;
*(.data)
*(.data.*)
}
.got : {
*(.got.plt)
*(.got)
_edata = . ;
}
. = ALIGN(4);
.bss : {
_bss = .;
*(.dynbss)
*(.bss)
*(.bss.*)
*(COMMON)
/* _end must be at least 256 byte aligned */
. = ALIGN(256);
_end = .;
}
/* Comment to pass through debug sections, etc. */
/DISCARD/ : { *(*) }
}