-
Notifications
You must be signed in to change notification settings - Fork 20
/
qemu-gdb.ld
40 lines (34 loc) · 839 Bytes
/
qemu-gdb.ld
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
ENTRY(_start)
SECTIONS {
. = 0x0000;
.text : ALIGN(4K) {
KEEP(*(.text.boot))
__end_init = .;
. = 0x100; /* Must match address from bootloader.ld */
KEEP(*(.text.main))
*(.text)
}
.rodata : ALIGN(4K) {
*(.rodata)
}
.data : ALIGN(4K) {
*(.data)
}
.bss : ALIGN(4K) {
__bss_start = .;
*(COMMON)
*(.bss)
__bss_end = .;
__debug_info_start = .;
__debug_info_end = .;
__debug_abbrev_start = .;
__debug_abbrev_end = .;
__debug_str_start = .;
__debug_str_end = .;
__debug_line_start = .;
__debug_line_end = .;
__debug_ranges_start = .;
__debug_ranges_end = .;
}
bootloader_main = 0x8800000; /* Must match bootloader linker script */
}