blob: 849dfcafd5184a2f1014d153a044c052ff0bc5cc [file] [log] [blame]
Chris Zankel36dffad2008-02-12 13:14:17 -08001#include <asm/variant/core.h>
Chris Zankel4bedea92005-06-23 22:01:12 -07002OUTPUT_ARCH(xtensa)
Marc Gauthiered3174d2007-10-23 16:40:24 -07003ENTRY(_ResetVector)
Chris Zankel4bedea92005-06-23 22:01:12 -07004
5SECTIONS
6{
7 .start 0xD0000000 : { *(.start) }
8
9 .text 0xD0000000:
10 {
11 __reloc_start = . ;
12 _text_start = . ;
13 *(.literal .text.literal .text)
14 _text_end = . ;
15 }
16
17 .rodata ALIGN(0x04):
18 {
19 *(.rodata)
20 *(.rodata1)
21 }
22
23 .data ALIGN(0x04):
24 {
25 *(.data)
26 *(.data1)
27 *(.sdata)
28 *(.sdata2)
29 *(.got.plt)
30 *(.got)
31 *(.dynamic)
32 }
33
34 __reloc_end = . ;
35
36 .initrd ALIGN(0x10) :
37 {
38 boot_initrd_start = . ;
39 *(.initrd)
40 boot_initrd_end = .;
41 }
42
43 . = ALIGN(0x10);
44 __image_load = . ;
45 .image 0xd0001000:
46 {
47 _image_start = .;
48 *(image)
49 . = (. + 3) & ~ 3;
50 _image_end = . ;
51 }
52
53
54 .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
55 {
56 __bss_start = .;
57 *(.sbss)
58 *(.scommon)
59 *(.dynbss)
60 *(.bss)
61 __bss_end = .;
62 }
63 _end = .;
64 _param_start = .;
65
Chris Zankel36dffad2008-02-12 13:14:17 -080066 .ResetVector.text XCHAL_RESET_VECTOR_VADDR :
Chris Zankel4bedea92005-06-23 22:01:12 -070067 {
68 *(.ResetVector.text)
69 }
70
71
72 PROVIDE (end = .);
73}