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