-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathldscript_rel.txt
63 lines (62 loc) · 995 Bytes
/
ldscript_rel.txt
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
OUTPUT_ARCH(powerpc)
text_size = text_end - text_start;
ctors_size = ctors_end - ctors_start;
dtors_size = dtors_end - dtors_start;
rodata_size = rodata_end - rodata_start;
data_size = data_end - data_start;
ImpTableSize = ImpTableEnd - ImpTable;
SECTIONS {
.header :
ALIGN(4) {
RelHeader.o(.data);
}
.text :
ALIGN(4) {
text_start = .;
text.o(.text);
text_end = .;
}
.ctors :
ALIGN(4) {
ctors_start = .;
ctors.o(.data);
ctors_end = .;
}
.dtors :
ALIGN(4) {
dtors_start = .;
dtors.o(.data);
dtors_end = .;
}
.rodata :
ALIGN(4) {
rodata_start = .;
rodata.o(.data);
rodata_end = .;
}
.data :
ALIGN(4) {
data_start = .;
data.o(.data);
data_end = .;
}
.imp :
ALIGN(4) {
ImpTable = .;
StaticImp.o(.data);
ImpTableEnd = .;
}
.reloc :
ALIGN(4) {
RelocTable.o(.data);
RelocTableMainDol.o(.data);
}
.bss (NOLOAD) :
ALIGN(4) {
. += 0x78b0;
} = 0
/* Discard everything not specifically mentioned above. */
/DISCARD/ : {
*(*);
}
}