comparison target-utils/env/iram.lds @ 11:40f607bb0a2c

target-utils refactored
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 01 May 2013 07:39:35 +0000
parents loadagent/loadagent.lds@ddda170fa6f4
children e7ba9fcb3637
comparison
equal deleted inserted replaced
10:e2e80a09338e 11:40f607bb0a2c
1 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
2 OUTPUT_ARCH(arm)
3 ENTRY(_entry)
4 SECTIONS
5 {
6 /* code */
7 . = 0x800750;
8 .text : {
9 /* regular code */
10 *(.text*)
11 /* gcc voodoo */
12 *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
13 . = ALIGN(4);
14 }
15
16 /* read-only data */
17 . = ALIGN(4);
18 .rodata : {
19 *(.rodata*)
20 }
21
22 /* initialized data */
23 . = ALIGN(4);
24 .data : {
25 *(.data)
26 }
27 PROVIDE(edata = .);
28
29 /* uninitialized data */
30 .bss (NOLOAD) : {
31 . = ALIGN(4);
32 __bss_start = .;
33 *(.bss)
34 }
35 . = ALIGN(4);
36 __bss_end = .;
37 /* end of image */
38 _end = .;
39 PROVIDE(end = .);
40 }
41
42 /* a few absolute definitions */
43 rom_vars = 0x800518;
44 /* stack_bottom = 0x83FFFC; */
45
46 /*
47 * stack_bottom will be set via the --defsym option to ld.
48 * Some programs have minimal IRAM requirements, so it would make more
49 * sense to set stack_bottom to 0x83FFFC, don't use the upper half of
50 * IRAM for anything, and make that program portable to Calypso Lite
51 * devices. But for some other programs we might have some use for
52 * the larger IRAM of our full Calypso devices, in which case we would
53 * want to set stack_bottom to 0x87FFFC instead.
54 */