blob: de4c9e3c93441a0c3b4b95bd0e87aa429774f357 [file] [log] [blame]
Paul Mackerras66a45dd2006-01-14 15:04:06 +11001OUTPUT_ARCH(powerpc:common)
David Gibsoncd197ff2007-03-05 14:24:52 +11002ENTRY(_zimage_start_opd)
3EXTERN(_zimage_start_opd)
Paul Mackerras66a45dd2006-01-14 15:04:06 +11004SECTIONS
5{
Paul Mackerras66a45dd2006-01-14 15:04:06 +11006 .text :
7 {
Michael Ellerman6975a782011-04-12 20:38:55 +00008 _start = .;
Paul Mackerras66a45dd2006-01-14 15:04:06 +11009 *(.text)
10 *(.fixup)
Michael Ellerman6975a782011-04-12 20:38:55 +000011 _etext = .;
Paul Mackerras66a45dd2006-01-14 15:04:06 +110012 }
Paul Mackerras66a45dd2006-01-14 15:04:06 +110013 . = ALIGN(4096);
14 .data :
15 {
16 *(.rodata*)
17 *(.data*)
Benjamin Herrenschmidt54c99412006-10-03 14:27:16 +100018 *(__builtin_*)
Paul Mackerras66a45dd2006-01-14 15:04:06 +110019 *(.sdata*)
Paul Mackerras66a45dd2006-01-14 15:04:06 +110020 *(.got2)
Paul Mackerras66a45dd2006-01-14 15:04:06 +110021
Mark A. Greerc8885542006-10-16 13:49:27 -070022 _dtb_start = .;
23 *(.kernel:dtb)
24 _dtb_end = .;
25
Paul Mackerras66a45dd2006-01-14 15:04:06 +110026 _vmlinux_start = .;
27 *(.kernel:vmlinux.strip)
28 _vmlinux_end = .;
29
30 _initrd_start = .;
31 *(.kernel:initrd)
32 _initrd_end = .;
33 }
34
35 . = ALIGN(4096);
36 _edata = .;
37 __bss_start = .;
38 .bss :
39 {
40 *(.sbss)
41 *(.bss)
42 }
43 _end = . ;
44
45 /DISCARD/ :
46 {
47 *(.comment)
48 }
49}