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)) |
35 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 36 | _FIXUP_TABLE_ = .; |
Peter Tyser | eb16874 | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 37 | KEEP(*(.fixup)) |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 38 | } |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 39 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 40 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
41 | |||||
42 | .data : | ||||
43 | { | ||||
Peter Tyser | eb16874 | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 44 | *(.data*) |
45 | *(.sdata*) | ||||
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 46 | } |
47 | _edata = .; | ||||
48 | PROVIDE (edata = .); | ||||
49 | |||||
50 | . = .; | ||||
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 51 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 52 | . = ALIGN(4); |
53 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 54 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 55 | } |
56 | |||||
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 57 | . = .; |
58 | __start___ex_table = .; | ||||
59 | __ex_table : { *(__ex_table) } | ||||
60 | __stop___ex_table = .; | ||||
61 | |||||
62 | . = ALIGN(256); | ||||
63 | __init_begin = .; | ||||
64 | .text.init : { *(.text.init) } | ||||
65 | .data.init : { *(.data.init) } | ||||
66 | . = ALIGN(256); | ||||
67 | __init_end = .; | ||||
68 | |||||
69 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 70 | .bss (NOLOAD) : |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 71 | { |
Peter Tyser | eb16874 | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 72 | *(.bss*) |
Wolfgang Denk | 1f759f1 | 2010-11-22 08:31:41 +0100 | [diff] [blame] | 73 | *(.sbss*) |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 74 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 75 | . = ALIGN(4); |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 76 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 77 | __bss_end = . ; |
Joe Hamman | e0bdea3 | 2007-08-09 15:10:53 -0500 | [diff] [blame] | 78 | PROVIDE (end = .); |
79 | } |