xref: /linux/arch/powerpc/boot/zImage.lds.S (revision f884ab15afdc5514e88105c92a4e2e1e6539869a)
1OUTPUT_ARCH(powerpc:common)
2ENTRY(_zimage_start)
3EXTERN(_zimage_start)
4SECTIONS
5{
6  .text      :
7  {
8    _start = .;
9    *(.text)
10    *(.fixup)
11    _etext = .;
12  }
13  . = ALIGN(4096);
14  .data    :
15  {
16    *(.rodata*)
17    *(.data*)
18    *(.sdata*)
19    *(.got2)
20  }
21  .dynsym : { *(.dynsym) }
22  .dynstr : { *(.dynstr) }
23  .dynamic :
24  {
25    __dynamic_start = .;
26    *(.dynamic)
27  }
28  .hash : { *(.hash) }
29  .interp : { *(.interp) }
30  .rela.dyn : { *(.rela*) }
31
32  . = ALIGN(8);
33  .kernel:dtb :
34  {
35    _dtb_start = .;
36    *(.kernel:dtb)
37    _dtb_end = .;
38  }
39
40  . = ALIGN(4096);
41  .kernel:vmlinux.strip :
42  {
43    _vmlinux_start =  .;
44    *(.kernel:vmlinux.strip)
45    _vmlinux_end =  .;
46  }
47
48  . = ALIGN(4096);
49  .kernel:initrd :
50  {
51    _initrd_start =  .;
52    *(.kernel:initrd)
53    _initrd_end =  .;
54  }
55
56  . = ALIGN(4096);
57  .bss       :
58  {
59    _edata  =  .;
60    __bss_start = .;
61    *(.sbss)
62    *(.bss)
63    *(COMMON)
64    _end = . ;
65  }
66}
67