Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 1 | /* |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 2 | * (C) Copyright 2001-2010 Wolfgang Denk, DENX Software Engineering, wd@denx.de |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 3 | * (C) Copyright 2003 Martin Winistoerfer, martinwinistoerfer@gmx.ch |
4 | * | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 9 | |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | /* Read-only sections, merged into text segment: */ | ||||
13 | . = + SIZEOF_HEADERS; | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 14 | .text : |
15 | { | ||||
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 16 | arch/powerpc/cpu/mpc5xx/start.o (.text*) |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 17 | |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 18 | *(.text*) |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 19 | } |
20 | _etext = .; | ||||
21 | PROVIDE (etext = .); | ||||
22 | .rodata : | ||||
23 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 24 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 25 | } |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 26 | |
27 | /* Read-write section, merged into data segment: */ | ||||
28 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
29 | _erotext = .; | ||||
30 | PROVIDE (erotext = .); | ||||
31 | .reloc : | ||||
32 | { | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 33 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 34 | KEEP(*(.got2)) |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 35 | KEEP(*(.got)) |
36 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 37 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 38 | KEEP(*(.fixup)) |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 39 | } |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 40 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 41 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
42 | |||||
43 | .data : | ||||
44 | { | ||||
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 45 | *(.data*) |
46 | *(.sdata*) | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 47 | } |
48 | _edata = .; | ||||
49 | PROVIDE (edata = .); | ||||
50 | |||||
51 | . = .; | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 52 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | . = ALIGN(4); |
54 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 55 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 56 | } |
57 | |||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 58 | |
59 | . = .; | ||||
60 | __start___ex_table = .; | ||||
61 | __ex_table : { *(__ex_table) } | ||||
62 | __stop___ex_table = .; | ||||
63 | |||||
64 | . = ALIGN(256); | ||||
65 | __init_begin = .; | ||||
66 | .text.init : { *(.text.init) } | ||||
67 | .data.init : { *(.data.init) } | ||||
68 | . = ALIGN(256); | ||||
69 | __init_end = .; | ||||
70 | |||||
71 | __bss_start = .; | ||||
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 72 | .bss (NOLOAD) : |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 73 | { |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 74 | *(.bss*) |
75 | *(.sbss*) | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 76 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 77 | . = ALIGN(4); |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 78 | } |
79 | |||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 80 | __bss_end = . ; |
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 81 | PROVIDE (end = .); |
Wolfgang Denk | 53f378f | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 82 | . = env_start; |
83 | .ppcenv : | ||||
84 | { | ||||
85 | common/env_embedded.o (.ppcenv) | ||||
86 | } | ||||
Grant Likely | 287ac92 | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 87 | } |