blob: 0962d62bdb5051c7e4ae61ff0b461e34bc952e46 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001OUTPUT_ARCH(powerpc:common)
Olaf Hering67a1b682005-10-28 17:46:49 -07002ENTRY(_zimage_start)
David Gibsoncd197ff2007-03-05 14:24:52 +11003EXTERN(_zimage_start)
Linus Torvalds1da177e2005-04-16 15:20:36 -07004SECTIONS
5{
Olaf Hering67a1b682005-10-28 17:46:49 -07006 _start = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 .text :
8 {
9 *(.text)
10 *(.fixup)
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 _etext = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 . = ALIGN(4096);
14 .data :
15 {
Olaf Hering06cf26b2005-10-28 17:46:44 -070016 *(.rodata*)
17 *(.data*)
18 *(.sdata*)
Olaf Heringa4497232005-10-28 17:46:48 -070019 __got2_start = .;
20 *(.got2)
21 __got2_end = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 }
23
Paul Mackerras621da0f2006-11-09 16:00:06 +110024 . = ALIGN(8);
25 _dtb_start = .;
26 .kernel:dtb : { *(.kernel:dtb) }
27 _dtb_end = .;
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 . = ALIGN(4096);
30 _vmlinux_start = .;
31 .kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
32 _vmlinux_end = .;
33
34 . = ALIGN(4096);
35 _initrd_start = .;
36 .kernel:initrd : { *(.kernel:initrd) }
37 _initrd_end = .;
38
39 . = ALIGN(4096);
40 _edata = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42 . = ALIGN(4096);
43 __bss_start = .;
44 .bss :
45 {
Olaf Hering06cf26b2005-10-28 17:46:44 -070046 *(.sbss)
Linus Torvalds1da177e2005-04-16 15:20:36 -070047 *(.bss)
Linus Torvalds1da177e2005-04-16 15:20:36 -070048 }
49 . = ALIGN(4096);
50 _end = . ;
Linus Torvalds1da177e2005-04-16 15:20:36 -070051}