This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ld-script
67 lines (57 loc) · 1.55 KB
/
ld-script
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
63
64
65
66
67
/*
* ld-script: ld (linker) script for bootmenu
*
* Copyright 2012 Skrilax_CZ
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_main)
ENTRY(_fb_compat_println)
ENTRY(_fb_compat_println_error)
ENTRY(_configure_custom_cmdline)
ENTRY(_finalize_atags)
ENTRY(_debug_write)
SECTIONS
{
. = 0x00195000;
. = ALIGN(4);
.text : { *(.text .text.*) }
. = ALIGN(4);
.rodata : { *(.rodata .rodata*) }
. = ALIGN(4);
.data : { *(.data .data.*) }
. = ALIGN(4);
_sbss = . ;
.bss : { *(.bss .bss.*) }
_ebss = . ;
}
/* BL 0.03.14 symbols */
/* ARM functions */
strcmp = 0x17B120;
strncmp = 0x17B1B8;
strncpy = 0x17B0C8;
strlen = 0x17B0F8;
snprintf = 0x17C1DC;
vsnprintf = 0x17C230;
malloc = 0x179998;
memcmp = 0x17B150;
memcpy = 0x17B188;
memset = 0x17B1F0;
free = 0x1799F0;
printf = 0x17C30C;
sleep = 0x179F44;