xref: /openbmc/linux/arch/powerpc/boot/zImage.ps3.lds.S (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
2bafdb645SGeoff LevandOUTPUT_ARCH(powerpc:common)
3bafdb645SGeoff LevandENTRY(_zimage_start)
4bafdb645SGeoff LevandEXTERN(_zimage_start)
5bafdb645SGeoff LevandSECTIONS
6bafdb645SGeoff Levand{
7bafdb645SGeoff Levand  _vmlinux_start =  .;
8bafdb645SGeoff Levand  .kernel:vmlinux.bin : { *(.kernel:vmlinux.bin) }
9bafdb645SGeoff Levand  _vmlinux_end =  .;
10bafdb645SGeoff Levand
11*ff4a825eSGeoff Levand  . = ALIGN(8);
12bafdb645SGeoff Levand  _dtb_start = .;
13bafdb645SGeoff Levand  .kernel:dtb : { *(.kernel:dtb) }
14bafdb645SGeoff Levand  _dtb_end = .;
15bafdb645SGeoff Levand
16bafdb645SGeoff Levand  . = ALIGN(4096);
17bafdb645SGeoff Levand  _initrd_start =  .;
18bafdb645SGeoff Levand  .kernel:initrd : { *(.kernel:initrd) }
19bafdb645SGeoff Levand  _initrd_end =  .;
20bafdb645SGeoff Levand
21bafdb645SGeoff Levand  _start = .;
22bafdb645SGeoff Levand  .text      :
23bafdb645SGeoff Levand  {
24bafdb645SGeoff Levand    *(.text)
25bafdb645SGeoff Levand    *(.fixup)
26bafdb645SGeoff Levand  }
27bafdb645SGeoff Levand  _etext = .;
28bafdb645SGeoff Levand  . = ALIGN(4096);
29bafdb645SGeoff Levand  .data    :
30bafdb645SGeoff Levand  {
31bafdb645SGeoff Levand    *(.rodata*)
32bafdb645SGeoff Levand    *(.data*)
33bafdb645SGeoff Levand    *(.sdata*)
34bafdb645SGeoff Levand    __got2_start = .;
35bafdb645SGeoff Levand    *(.got2)
36bafdb645SGeoff Levand    __got2_end = .;
37bafdb645SGeoff Levand  }
38bafdb645SGeoff Levand
39bafdb645SGeoff Levand  . = ALIGN(4096);
40bafdb645SGeoff Levand  _edata  =  .;
41bafdb645SGeoff Levand
42bafdb645SGeoff Levand  . = ALIGN(4096);
43bafdb645SGeoff Levand  __bss_start = .;
44bafdb645SGeoff Levand  .bss       :
45bafdb645SGeoff Levand  {
46bafdb645SGeoff Levand   *(.sbss)
47bafdb645SGeoff Levand   *(.bss)
48bafdb645SGeoff Levand  }
49bafdb645SGeoff Levand  . = ALIGN(4096);
50bafdb645SGeoff Levand  _end = . ;
51bafdb645SGeoff Levand}
52