Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 1 | /* |
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 2 | * (C) Copyright 2007-2010 DENX Software Engineering. |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 5 | */ |
6 | |||||
7 | OUTPUT_ARCH(powerpc) | ||||
8 | SECTIONS | ||||
9 | { | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 10 | .text : |
11 | { | ||||
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 12 | arch/powerpc/cpu/mpc512x/start.o (.text*) |
13 | *(.text*) | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 14 | . = ALIGN(16); |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 15 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 16 | } |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 17 | |
18 | /* Read-write section, merged into data segment: */ | ||||
19 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
20 | _erotext = .; | ||||
21 | PROVIDE (erotext = .); | ||||
22 | .reloc : | ||||
23 | { | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 24 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 25 | KEEP(*(.got2)) |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 26 | KEEP(*(.got)) |
27 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 28 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 29 | KEEP(*(.fixup)) |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 30 | *(.fixup) |
31 | } | ||||
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 32 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 33 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
34 | |||||
35 | .data : | ||||
36 | { | ||||
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 37 | *(.data*) |
38 | *(.sdata*) | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 39 | } |
40 | _edata = .; | ||||
41 | PROVIDE (edata = .); | ||||
42 | |||||
43 | . = .; | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 44 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 45 | . = ALIGN(4); |
46 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 47 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 48 | } |
49 | |||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 50 | |
51 | . = .; | ||||
52 | __start___ex_table = .; | ||||
53 | __ex_table : { *(__ex_table) } | ||||
54 | __stop___ex_table = .; | ||||
55 | |||||
56 | . = ALIGN(4096); | ||||
57 | __init_begin = .; | ||||
58 | .text.init : { *(.text.init) } | ||||
59 | .data.init : { *(.data.init) } | ||||
60 | . = ALIGN(4096); | ||||
61 | __init_end = .; | ||||
62 | |||||
63 | __bss_start = .; | ||||
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 64 | .bss (NOLOAD) : |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 65 | { |
Wolfgang Denk | 566d49a | 2010-11-22 23:36:42 +0100 | [diff] [blame] | 66 | *(.bss*) |
67 | *(.sbss*) | ||||
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 68 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 69 | . = ALIGN(4); |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 70 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 71 | __bss_end = . ; |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 72 | PROVIDE (end = .); |
73 | } | ||||
74 | ENTRY(_start) |