Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 1 | /* |
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 2 | * (C) Copyright 2001-2010 |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 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 | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 9 | |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | /* Read-only sections, merged into text segment: */ | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 13 | .text : |
14 | { | ||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 15 | arch/powerpc/cpu/mpc8260/start.o (.text*) |
16 | *(.text*) | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 17 | . = ALIGN(16); |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 18 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 19 | } |
Grant Likely | b8d6ba4 | 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 | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 27 | _GOT2_TABLE_ = .; |
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 28 | KEEP(*(.got2)) |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 29 | KEEP(*(.got)) |
30 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 31 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 32 | KEEP(*(.fixup)) |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 33 | } |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 34 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 35 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
36 | |||||
37 | .data : | ||||
38 | { | ||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 39 | *(.data*) |
40 | *(.sdata*) | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 41 | } |
42 | _edata = .; | ||||
43 | PROVIDE (edata = .); | ||||
44 | |||||
45 | . = .; | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 46 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 47 | . = ALIGN(4); |
48 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 49 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | } |
51 | |||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 52 | |
53 | . = .; | ||||
54 | __start___ex_table = .; | ||||
55 | __ex_table : { *(__ex_table) } | ||||
56 | __stop___ex_table = .; | ||||
57 | |||||
58 | . = ALIGN(4096); | ||||
59 | __init_begin = .; | ||||
60 | .text.init : { *(.text.init) } | ||||
61 | .data.init : { *(.data.init) } | ||||
62 | . = ALIGN(4096); | ||||
63 | __init_end = .; | ||||
64 | |||||
65 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 66 | .bss (NOLOAD) : |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 67 | { |
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 68 | *(.bss*) |
69 | *(.sbss*) | ||||
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 70 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 71 | . = ALIGN(4); |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 72 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 73 | __bss_end = . ; |
Grant Likely | b8d6ba4 | 2007-07-03 00:33:08 -0600 | [diff] [blame] | 74 | PROVIDE (end = .); |
75 | } |