forked from satiator/satiator-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.ld
41 lines (36 loc) · 961 Bytes
/
menu.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
41
/* Copyright (c) 2015 James Laird-Wah
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
OUTPUT_FORMAT("elf32-sh", "elf32-sh",
"elf32-sh")
OUTPUT_ARCH(sh)
ENTRY(_start)
MEMORY {
/* all of low Work RAM is free for our use, woo */
work_low (rwx) : org = 0x200000, l = 0x100000
}
SECTIONS {
.ram : {
__load_start = .;
*(.start);
*ashiftrt.o(.text); /* necessary for the BIOS load */
*(.text);
*(.text.*);
*(.rodata);
*(.rodata.*);
*(.data);
*(.data.*);
__load_end = .;
} >work_low
.noload : {
*(.bss);
*(.bss.*);
*(COMMON);
__bss_end = .;
. = ALIGN(4);
__free_ram_begin = .;
__free_ram_end = __load_start + 0x100000;
} >work_low
}