Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 2 | /* |
3 | * Copyright 2006, 2007 Freescale Semiconductor, Inc. | ||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 4 | */ |
5 | |||||
6 | OUTPUT_ARCH(powerpc) | ||||
7 | |||||
8 | SECTIONS | ||||
9 | { | ||||
10 | |||||
11 | /* Read-only sections, merged into text segment: */ | ||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 12 | .text : |
13 | { | ||||
Wolfgang Denk | 4e2894b | 2010-11-22 08:31:41 +0100 | [diff] [blame] | 14 | arch/powerpc/cpu/mpc86xx/start.o (.text*) |
15 | arch/powerpc/cpu/mpc86xx/traps.o (.text*) | ||||
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 16 | *(.text*) |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 17 | } |
18 | _etext = .; | ||||
19 | PROVIDE (etext = .); | ||||
20 | .rodata : | ||||
21 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 22 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 23 | } |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 24 | |
25 | /* Read-write section, merged into data segment: */ | ||||
26 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
27 | _erotext = .; | ||||
28 | PROVIDE (erotext = .); | ||||
29 | .reloc : | ||||
30 | { | ||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 31 | _GOT2_TABLE_ = .; |
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 32 | KEEP(*(.got2)) |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 33 | KEEP(*(.got)) |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 34 | _FIXUP_TABLE_ = .; |
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 35 | KEEP(*(.fixup)) |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 36 | } |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 37 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 38 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
39 | |||||
40 | .data : | ||||
41 | { | ||||
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 42 | *(.data*) |
43 | *(.sdata*) | ||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 44 | } |
45 | _edata = .; | ||||
46 | PROVIDE (edata = .); | ||||
47 | |||||
48 | . = .; | ||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 49 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | . = ALIGN(4); |
51 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 52 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | } |
54 | |||||
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 55 | . = .; |
56 | __start___ex_table = .; | ||||
57 | __ex_table : { *(__ex_table) } | ||||
58 | __stop___ex_table = .; | ||||
59 | |||||
60 | . = ALIGN(256); | ||||
61 | __init_begin = .; | ||||
62 | .text.init : { *(.text.init) } | ||||
63 | .data.init : { *(.data.init) } | ||||
64 | . = ALIGN(256); | ||||
65 | __init_end = .; | ||||
66 | |||||
67 | __bss_start = .; | ||||
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 68 | .bss (NOLOAD) : |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 69 | { |
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 70 | *(.bss*) |
Wolfgang Denk | 4e2894b | 2010-11-22 08:31:41 +0100 | [diff] [blame] | 71 | *(.sbss*) |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 72 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 73 | . = ALIGN(4); |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 74 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 75 | __bss_end = . ; |
Joe Hamman | 8ac2732 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 76 | PROVIDE (end = .); |
77 | } |