PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/board/evb64260/u-boot.lds

https://gitlab.com/veo-labs/u-boot
LD Script | 86 lines | 63 code | 12 blank | 11 comment | 0 complexity | 9452b85c60b48acb58ef014c87561f21 MD5 | raw file
 1/*
 2 * (C) Copyright 2001
 3 * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
 4 *
 5 * SPDX-License-Identifier:	GPL-2.0+
 6 */
 7
 8/*
 9 * u-boot.lds - linker script for U-Boot on the Galileo Eval Board.
10 */
11
12OUTPUT_ARCH(powerpc)
13
14SECTIONS
15{
16  /* Read-only sections, merged into text segment: */
17  .text      :
18  {
19    arch/powerpc/cpu/74xx_7xx/start.o	(.text*)
20    *(.text*)
21
22    . = DEFINED(env_offset) ? env_offset : .;
23    common/env_embedded.o	(.ppcenv*)
24  }
25  _etext = .;
26  PROVIDE (etext = .);
27  .rodata    :
28  {
29    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
30  }
31
32  /* Read-write section, merged into data segment: */
33  . = (. + 0x00FF) & 0xFFFFFF00;
34  _erotext = .;
35  PROVIDE (erotext = .);
36  .reloc   :
37  {
38    _GOT2_TABLE_ = .;
39    KEEP(*(.got2))
40    KEEP(*(.got))
41    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
42    _FIXUP_TABLE_ = .;
43    KEEP(*(.fixup))
44  }
45  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
46  __fixup_entries = (. - _FIXUP_TABLE_)>>2;
47
48  .data    :
49  {
50    *(.data*)
51    *(.sdata*)
52  }
53  _edata  =  .;
54  PROVIDE (edata = .);
55
56  . = .;
57
58  . = ALIGN(4);
59  .u_boot_list : {
60	KEEP(*(SORT(.u_boot_list*)));
61  }
62
63
64  . = .;
65  __start___ex_table = .;
66  __ex_table : { *(__ex_table) }
67  __stop___ex_table = .;
68
69  . = ALIGN(256);
70  __init_begin = .;
71  .text.init : { *(.text.init) }
72  .data.init : { *(.data.init) }
73  . = ALIGN(256);
74  __init_end = .;
75
76  __bss_start = .;
77  .bss (NOLOAD)       :
78  {
79   *(.bss*)
80   *(.sbss*)
81   *(COMMON)
82   . = ALIGN(4);
83  }
84  __bss_end = . ;
85  PROVIDE (end = .);
86}