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