Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 1 | /* |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 2 | * (C) Copyright 2001-2010 Wolfgang Denk, DENX Software Engineering, wd@denx.de |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 3 | * (C) Copyright 2003 Martin Winistoerfer, martinwinistoerfer@gmx.ch |
4 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 9 | |
Grant Likely | d68c71c | 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 | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 14 | .text : |
15 | { | ||||
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 16 | arch/powerpc/cpu/mpc5xx/start.o (.text*) |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 17 | |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 18 | *(.text*) |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 19 | } |
20 | _etext = .; | ||||
21 | PROVIDE (etext = .); | ||||
22 | .rodata : | ||||
23 | { | ||||
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 24 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 25 | } |
Grant Likely | d68c71c | 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 | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 33 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 34 | KEEP(*(.got2)) |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 35 | KEEP(*(.got)) |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 36 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 37 | KEEP(*(.fixup)) |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 38 | } |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 39 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 40 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
41 | |||||
42 | .data : | ||||
43 | { | ||||
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 44 | *(.data*) |
45 | *(.sdata*) | ||||
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 46 | } |
47 | _edata = .; | ||||
48 | PROVIDE (edata = .); | ||||
49 | |||||
50 | . = .; | ||||
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 51 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 52 | . = ALIGN(4); |
53 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 54 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 55 | } |
56 | |||||
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 57 | |
58 | . = .; | ||||
59 | __start___ex_table = .; | ||||
60 | __ex_table : { *(__ex_table) } | ||||
61 | __stop___ex_table = .; | ||||
62 | |||||
63 | . = ALIGN(256); | ||||
64 | __init_begin = .; | ||||
65 | .text.init : { *(.text.init) } | ||||
66 | .data.init : { *(.data.init) } | ||||
67 | . = ALIGN(256); | ||||
68 | __init_end = .; | ||||
69 | |||||
70 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 71 | .bss (NOLOAD) : |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 72 | { |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 73 | *(.bss*) |
74 | *(.sbss*) | ||||
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 75 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 76 | . = ALIGN(4); |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 77 | } |
78 | |||||
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 79 | __bss_end = . ; |
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 80 | PROVIDE (end = .); |
Wolfgang Denk | 61c7a6e | 2010-11-22 22:44:01 +0100 | [diff] [blame] | 81 | . = env_start; |
82 | .ppcenv : | ||||
83 | { | ||||
84 | common/env_embedded.o (.ppcenv) | ||||
85 | } | ||||
Grant Likely | d68c71c | 2007-07-03 00:32:53 -0600 | [diff] [blame] | 86 | } |