wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2001 | ||||
3 | * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc. | ||||
4 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
8 | /* | ||||
9 | * u-boot.lds - linker script for U-Boot on the Galileo Eval Board. | ||||
10 | */ | ||||
11 | |||||
12 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 13 | |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 14 | SECTIONS |
15 | { | ||||
16 | /* Read-only sections, merged into text segment: */ | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 17 | .text : |
18 | { | ||||
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 19 | arch/powerpc/cpu/74xx_7xx/start.o (.text*) |
20 | *(.text*) | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 21 | |
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 22 | . = DEFINED(env_offset) ? env_offset : .; |
23 | common/env_embedded.o (.ppcenv*) | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 24 | } |
25 | _etext = .; | ||||
26 | PROVIDE (etext = .); | ||||
27 | .rodata : | ||||
28 | { | ||||
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 29 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 30 | } |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 31 | |
32 | /* Read-write section, merged into data segment: */ | ||||
33 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
34 | _erotext = .; | ||||
35 | PROVIDE (erotext = .); | ||||
36 | .reloc : | ||||
37 | { | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 38 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 39 | KEEP(*(.got2)) |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 40 | KEEP(*(.got)) |
41 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 42 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 43 | KEEP(*(.fixup)) |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 44 | } |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 45 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 46 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
47 | |||||
48 | .data : | ||||
49 | { | ||||
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 50 | *(.data*) |
51 | *(.sdata*) | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 52 | } |
53 | _edata = .; | ||||
54 | PROVIDE (edata = .); | ||||
55 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 56 | . = .; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 57 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 58 | . = ALIGN(4); |
59 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 60 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 61 | } |
62 | |||||
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 63 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 64 | . = .; |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 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 = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 77 | .bss (NOLOAD) : |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 78 | { |
Wolfgang Denk | 2ef3005 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 79 | *(.bss*) |
80 | *(.sbss*) | ||||
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 81 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 82 | . = ALIGN(4); |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 83 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 84 | __bss_end = . ; |
wdenk | 7ebf744 | 2002-11-02 23:17:16 +0000 | [diff] [blame] | 85 | PROVIDE (end = .); |
86 | } |