-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathld.script.arm-qemu
33 lines (33 loc) · 1.49 KB
/
ld.script.arm-qemu
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
OUTPUT_ARCH(arm)
ENTRY(start)
physbase = 0x00010000;
SECTIONS
{
. = physbase; /* Image starts here */
. = ALIGN(4096); /* Accommodate bad physbase */
.text : {
text = ABSOLUTE(.); /* text: beginning of text segment */
*(.text .text.*) /* asm text, then C text */
*(.rodata .rodata.*) /* asm and C read-only data */
etext = ABSOLUTE(.) ; /* etext: end of text */
. = ALIGN(4096);
}
.data :
{
data = ABSOLUTE(.); /* data: beginning of data segment */
*(.data .data.*)
edata = ABSOLUTE(.) ; /* edata: end of data */
. = ALIGN(4096);
}
.bss :
{
bss = ABSOLUTE(.); /* bss: beginning of bss segment */
*(.bss .bss.*)
*(COMMON) /* extra sections that are common */
ebss = ABSOLUTE(.) ; /* ebss: end of bss */
. = ALIGN(4096); */
end = ABSOLUTE(.); /* end: end of image */
_end = ABSOLUTE(.); /* _end: end of image */
. = ALIGN(4096);
}
}