blob: f6e380fdb388903a01394c1643f3a7b71ae2c455 [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 . = (4*1024*1024);
7 _start = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 .text :
9 {
10 *(.text)
11 *(.fixup)
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 _etext = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 . = ALIGN(4096);
15 .data :
16 {
Olaf Hering06cf26b2005-10-28 17:46:44 -070017 *(.rodata*)
18 *(.data*)
19 *(.sdata*)
Olaf Heringa4497232005-10-28 17:46:48 -070020 __got2_start = .;
21 *(.got2)
22 __got2_end = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070023 }
24
Paul Mackerras621da0f2006-11-09 16:00:06 +110025 . = ALIGN(8);
26 _dtb_start = .;
27 .kernel:dtb : { *(.kernel:dtb) }
28 _dtb_end = .;
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 . = ALIGN(4096);
31 _vmlinux_start = .;
32 .kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
33 _vmlinux_end = .;
34
35 . = ALIGN(4096);
36 _initrd_start = .;
37 .kernel:initrd : { *(.kernel:initrd) }
38 _initrd_end = .;
39
40 . = ALIGN(4096);
41 _edata = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070042
43 . = ALIGN(4096);
44 __bss_start = .;
45 .bss :
46 {
Olaf Hering06cf26b2005-10-28 17:46:44 -070047 *(.sbss)
Linus Torvalds1da177e2005-04-16 15:20:36 -070048 *(.bss)
Linus Torvalds1da177e2005-04-16 15:20:36 -070049 }
50 . = ALIGN(4096);
51 _end = . ;
Linus Torvalds1da177e2005-04-16 15:20:36 -070052}