xref: /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc86xx/u-boot.lds (revision 5f5620ab2679608f94b3a77e51c77d0a770103bd)
1bd9715e3SKumar Gala/*
2bd9715e3SKumar Gala * Copyright 2006, 2007 Freescale Semiconductor, Inc.
3bd9715e3SKumar Gala *
4*1a459660SWolfgang Denk * SPDX-License-Identifier:	GPL-2.0+
5bd9715e3SKumar Gala */
6bd9715e3SKumar Gala
7bd9715e3SKumar GalaOUTPUT_ARCH(powerpc)
8bd9715e3SKumar Gala
9bd9715e3SKumar GalaSECTIONS
10bd9715e3SKumar Gala{
11bd9715e3SKumar Gala
12bd9715e3SKumar Gala  /* Read-only sections, merged into text segment: */
13bd9715e3SKumar Gala  .text      :
14bd9715e3SKumar Gala  {
154e2894beSWolfgang Denk    arch/powerpc/cpu/mpc86xx/start.o	(.text*)
164e2894beSWolfgang Denk    arch/powerpc/cpu/mpc86xx/traps.o	(.text*)
1768337fb5SPeter Tyser    *(.text*)
18bd9715e3SKumar Gala   }
19bd9715e3SKumar Gala    _etext = .;
20bd9715e3SKumar Gala    PROVIDE (etext = .);
21bd9715e3SKumar Gala    .rodata    :
22bd9715e3SKumar Gala   {
23bd9715e3SKumar Gala    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
24bd9715e3SKumar Gala  }
25bd9715e3SKumar Gala
26bd9715e3SKumar Gala  /* Read-write section, merged into data segment: */
27bd9715e3SKumar Gala  . = (. + 0x00FF) & 0xFFFFFF00;
28bd9715e3SKumar Gala  _erotext = .;
29bd9715e3SKumar Gala  PROVIDE (erotext = .);
30bd9715e3SKumar Gala  .reloc   :
31bd9715e3SKumar Gala  {
32bd9715e3SKumar Gala    _GOT2_TABLE_ = .;
3368337fb5SPeter Tyser    KEEP(*(.got2))
34337f5f50SJoakim Tjernlund    KEEP(*(.got))
35bd9715e3SKumar Gala    _FIXUP_TABLE_ = .;
3668337fb5SPeter Tyser    KEEP(*(.fixup))
37bd9715e3SKumar Gala  }
38337f5f50SJoakim Tjernlund  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
39bd9715e3SKumar Gala  __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
40bd9715e3SKumar Gala
41bd9715e3SKumar Gala  .data    :
42bd9715e3SKumar Gala  {
4368337fb5SPeter Tyser    *(.data*)
4468337fb5SPeter Tyser    *(.sdata*)
45bd9715e3SKumar Gala  }
46bd9715e3SKumar Gala  _edata  =  .;
47bd9715e3SKumar Gala  PROVIDE (edata = .);
48bd9715e3SKumar Gala
49bd9715e3SKumar Gala  . = .;
50bd9715e3SKumar Gala
5155675142SMarek Vasut  . = ALIGN(4);
5255675142SMarek Vasut  .u_boot_list : {
53ef123c52SAlbert ARIBAUD	KEEP(*(SORT(.u_boot_list*)));
5455675142SMarek Vasut  }
5555675142SMarek Vasut
56bd9715e3SKumar Gala  . = .;
57bd9715e3SKumar Gala  __start___ex_table = .;
58bd9715e3SKumar Gala  __ex_table : { *(__ex_table) }
59bd9715e3SKumar Gala  __stop___ex_table = .;
60bd9715e3SKumar Gala
61bd9715e3SKumar Gala  . = ALIGN(256);
62bd9715e3SKumar Gala  __init_begin = .;
63bd9715e3SKumar Gala  .text.init : { *(.text.init) }
64bd9715e3SKumar Gala  .data.init : { *(.data.init) }
65bd9715e3SKumar Gala  . = ALIGN(256);
66bd9715e3SKumar Gala  __init_end = .;
67bd9715e3SKumar Gala
68bd9715e3SKumar Gala  __bss_start = .;
69bd9715e3SKumar Gala  .bss (NOLOAD)       :
70bd9715e3SKumar Gala  {
7168337fb5SPeter Tyser   *(.bss*)
724e2894beSWolfgang Denk   *(.sbss*)
73bd9715e3SKumar Gala   *(COMMON)
74bd9715e3SKumar Gala   . = ALIGN(4);
75bd9715e3SKumar Gala  }
763929fb0aSSimon Glass  __bss_end = . ;
77bd9715e3SKumar Gala  PROVIDE (end = .);
78bd9715e3SKumar Gala}
79