Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2003-2004 | ||||
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
4 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 9 | |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | /* Read-only sections, merged into text segment: */ | ||||
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 13 | .text : |
14 | { | ||||
15 | /* WARNING - the following is hand-optimized to fit within */ | ||||
16 | /* the sector layout of our flash chips! XXX FIXME XXX */ | ||||
17 | |||||
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 18 | arch/powerpc/cpu/mpc5xxx/start.o (.text*) |
19 | arch/powerpc/cpu/mpc5xxx/traps.o (.text*) | ||||
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 20 | |
21 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 22 | common/env_embedded.o (.ppcenv*) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 23 | |
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 24 | *(.text*) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 25 | . = ALIGN(16); |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 26 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 27 | } |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 28 | |
29 | /* Read-write section, merged into data segment: */ | ||||
30 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
31 | _erotext = .; | ||||
32 | PROVIDE (erotext = .); | ||||
33 | .reloc : | ||||
34 | { | ||||
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 35 | KEEP(*(.got)) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 36 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 37 | KEEP(*(.got2)) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 38 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 39 | KEEP(*(.fixup)) |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 40 | } |
41 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2; | ||||
42 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; | ||||
43 | |||||
44 | .data : | ||||
45 | { | ||||
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 46 | *(.data*) |
47 | *(.sdata*) | ||||
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 48 | } |
49 | _edata = .; | ||||
50 | PROVIDE (edata = .); | ||||
51 | |||||
52 | . = .; | ||||
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 53 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 54 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 55 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 56 | } |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 57 | |
58 | . = .; | ||||
59 | __start___ex_table = .; | ||||
60 | __ex_table : { *(__ex_table) } | ||||
61 | __stop___ex_table = .; | ||||
62 | |||||
63 | . = ALIGN(4096); | ||||
64 | __init_begin = .; | ||||
65 | .text.init : { *(.text.init) } | ||||
66 | .data.init : { *(.data.init) } | ||||
67 | . = ALIGN(4096); | ||||
68 | __init_end = .; | ||||
69 | |||||
70 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 71 | .bss (NOLOAD) : |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 72 | { |
Wolfgang Denk | 01fd915 | 2010-11-23 13:20:22 +0100 | [diff] [blame] | 73 | *(.bss*) |
74 | *(.sbss*) | ||||
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 75 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 76 | . = ALIGN(4); |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 77 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 78 | __bss_end = . ; |
Grant Likely | 17208ae | 2007-07-03 00:32:58 -0600 | [diff] [blame] | 79 | PROVIDE (end = .); |
80 | } |