blob: 1a234b68fdfcdfb5169b280a5580f5bf0c645bef [file] [log] [blame]
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -08001OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
2OUTPUT_ARCH(arm)
3
4ENTRY(_start)
5SECTIONS
6{
7/*Added TRUSTZONE at 0x0. Moving rest of APPSBL to %MEMBASE% */
8 . = 0x0;
9 .tzbsp 0x0 : {*tzbsp_bin.o(.data)}
10 . = %MEMBASE%;
11 .interp : { *(.interp) }
12 .hash : { *(.hash) }
13 .dynsym : { *(.dynsym) }
14 .dynstr : { *(.dynstr) }
15 .rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
16 .rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
17 .rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
18 .rela.data : { *(.rela.data) *(.rela.gnu.linkonce.d*) }
19 .rel.rodata : { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
20 .rela.rodata : { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
21 .rel.got : { *(.rel.got) }
22 .rela.got : { *(.rela.got) }
23 .rel.ctors : { *(.rel.ctors) }
24 .rela.ctors : { *(.rela.ctors) }
25 .rel.dtors : { *(.rel.dtors) }
26 .rela.dtors : { *(.rela.dtors) }
27 .rel.init : { *(.rel.init) }
28 .rela.init : { *(.rela.init) }
29 .rel.fini : { *(.rel.fini) }
30 .rela.fini : { *(.rela.fini) }
31 .rel.bss : { *(.rel.bss) }
32 .rela.bss : { *(.rela.bss) }
33 .rel.plt : { *(.rel.plt) }
34 .rela.plt : { *(.rela.plt) }
35/*Moving harcoded addresses by a displacement of %MEMBASE% */
36 .init : { *(.init) } = %MEMBASE% + 0x9090
37 .plt : { *(.plt) }
38
39 /* text/read-only data */
40
41/*Moving harcoded addresses by a displacement of %MEMBASE% */
42 .text : { *(.text .text.* .glue_7* .gnu.linkonce.t.*) } = %MEMBASE% + 0x9090
43
44 .rodata : {
45 *(.rodata .rodata.* .gnu.linkonce.r.*)
46 . = ALIGN(4);
47 __commands_start = .;
48 KEEP (*(.commands))
49 __commands_end = .;
50 . = ALIGN(4);
51 __apps_start = .;
52 KEEP (*(.apps))
53 __apps_end = .;
54 . = ALIGN(4);
55 __rodata_end = . ;
56 }
57
58 /* writable data */
59 __data_start_rom = .; /* in one segment binaries, the rom data address is on top of the ram data address */
60 __data_start = .;
61 .data : SUBALIGN(4) { *(.data .data.* .gnu.linkonce.d.*) }
62
63 __ctor_list = .;
64 .ctors : { *(.ctors) }
65 __ctor_end = .;
66 __dtor_list = .;
67 .dtors : { *(.dtors) }
68 __dtor_end = .;
69 .got : { *(.got.plt) *(.got) }
70 .dynamic : { *(.dynamic) }
71
72 __data_end = .;
73
74 /* unintialized data (in same segment as writable data) */
75 . = ALIGN(4);
76 __bss_start = .;
77 .bss : { *(.bss .bss.*) }
78
79
80
81
82 . = ALIGN(4);
83 _end = .;
84
85
86
87 . = %MEMBASE% + %MEMSIZE%;
88 _end_of_ram = .;
89
90 /* Strip unnecessary stuff */
91 /DISCARD/ : { *(.comment .note .eh_frame) }
92}