Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 1 | #include <asm-generic/vmlinux.lds.h> |
2 | |||||
3 | #ifdef CONFIG_PPC64_BOOT_WRAPPER | ||||
4 | OUTPUT_ARCH(powerpc:common64) | ||||
5 | #else | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | OUTPUT_ARCH(powerpc:common) |
Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 7 | #endif |
Olaf Hering | 67a1b68 | 2005-10-28 17:46:49 -0700 | [diff] [blame] | 8 | ENTRY(_zimage_start) |
David Gibson | cd197ff | 2007-03-05 14:24:52 +1100 | [diff] [blame] | 9 | EXTERN(_zimage_start) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | .text : |
13 | { | ||||
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 14 | _start = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | *(.text) |
16 | *(.fixup) | ||||
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 17 | _etext = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | . = ALIGN(4096); |
20 | .data : | ||||
21 | { | ||||
Olaf Hering | 06cf26b | 2005-10-28 17:46:44 -0700 | [diff] [blame] | 22 | *(.rodata*) |
23 | *(.data*) | ||||
24 | *(.sdata*) | ||||
Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 25 | #ifndef CONFIG_PPC64_BOOT_WRAPPER |
Olaf Hering | a449723 | 2005-10-28 17:46:48 -0700 | [diff] [blame] | 26 | *(.got2) |
Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 27 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | } |
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 29 | .dynsym : { *(.dynsym) } |
30 | .dynstr : { *(.dynstr) } | ||||
31 | .dynamic : | ||||
32 | { | ||||
33 | __dynamic_start = .; | ||||
34 | *(.dynamic) | ||||
35 | } | ||||
36 | .hash : { *(.hash) } | ||||
37 | .interp : { *(.interp) } | ||||
Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 38 | .rela.dyn : |
39 | { | ||||
40 | #ifdef CONFIG_PPC64_BOOT_WRAPPER | ||||
41 | __rela_dyn_start = .; | ||||
42 | #endif | ||||
43 | *(.rela*) | ||||
44 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | |
Paul Mackerras | 621da0f | 2006-11-09 16:00:06 +1100 | [diff] [blame] | 46 | . = ALIGN(8); |
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 47 | .kernel:dtb : |
48 | { | ||||
49 | _dtb_start = .; | ||||
50 | *(.kernel:dtb) | ||||
51 | _dtb_end = .; | ||||
52 | } | ||||
Paul Mackerras | 621da0f | 2006-11-09 16:00:06 +1100 | [diff] [blame] | 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | . = ALIGN(4096); |
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 55 | .kernel:vmlinux.strip : |
56 | { | ||||
57 | _vmlinux_start = .; | ||||
58 | *(.kernel:vmlinux.strip) | ||||
59 | _vmlinux_end = .; | ||||
60 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | |
62 | . = ALIGN(4096); | ||||
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 63 | .kernel:initrd : |
64 | { | ||||
65 | _initrd_start = .; | ||||
66 | *(.kernel:initrd) | ||||
67 | _initrd_end = .; | ||||
68 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | |
Cédric Le Goater | 147c051 | 2014-04-24 09:23:39 +0200 | [diff] [blame] | 70 | #ifdef CONFIG_PPC64_BOOT_WRAPPER |
71 | .got : | ||||
72 | { | ||||
73 | __toc_start = .; | ||||
74 | *(.got) | ||||
75 | *(.toc) | ||||
76 | } | ||||
77 | #endif | ||||
78 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | . = ALIGN(4096); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | .bss : |
81 | { | ||||
Michael Ellerman | 6975a78 | 2011-04-12 20:38:55 +0000 | [diff] [blame] | 82 | _edata = .; |
83 | __bss_start = .; | ||||
84 | *(.sbss) | ||||
85 | *(.bss) | ||||
86 | *(COMMON) | ||||
87 | _end = . ; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | } |