wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2000 | ||||
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+ |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(powerpc) | ||||
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 9 | |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | .resetvec 0xFFFFFFFC : | ||||
13 | { | ||||
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 14 | KEEP(*(.resetvec)) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 15 | } = 0xffff |
16 | |||||
17 | /* Read-only sections, merged into text segment: */ | ||||
18 | . = + SIZEOF_HEADERS; | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 19 | .text : |
20 | { | ||||
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 21 | arch/powerpc/cpu/ppc4xx/start.o (.text) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 22 | |
23 | . = env_offset; | ||||
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 24 | common/env_embedded.o (.text*) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 25 | |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 26 | *(.text*) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 27 | } |
28 | _etext = .; | ||||
29 | PROVIDE (etext = .); | ||||
30 | .rodata : | ||||
31 | { | ||||
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 32 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 33 | } |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 34 | |
35 | /* Read-write section, merged into data segment: */ | ||||
36 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
37 | _erotext = .; | ||||
38 | PROVIDE (erotext = .); | ||||
39 | .reloc : | ||||
40 | { | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 41 | _GOT2_TABLE_ = .; |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 42 | KEEP(*(.got2)) |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 43 | KEEP(*(.got)) |
44 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 45 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 46 | KEEP(*(.fixup)) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 47 | } |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 48 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 49 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
50 | |||||
51 | .data : | ||||
52 | { | ||||
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 53 | *(.data*) |
54 | *(.sdata*) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 55 | } |
56 | _edata = .; | ||||
57 | PROVIDE (edata = .); | ||||
58 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 59 | . = .; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 60 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 61 | . = ALIGN(4); |
62 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 63 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 64 | } |
65 | |||||
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 66 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 67 | . = .; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 68 | __start___ex_table = .; |
69 | __ex_table : { *(__ex_table) } | ||||
70 | __stop___ex_table = .; | ||||
71 | |||||
72 | . = ALIGN(4096); | ||||
73 | __init_begin = .; | ||||
74 | .text.init : { *(.text.init) } | ||||
75 | .data.init : { *(.data.init) } | ||||
76 | . = ALIGN(4096); | ||||
77 | __init_end = .; | ||||
78 | |||||
79 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 80 | .bss (NOLOAD) : |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 81 | { |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 82 | *(.bss*) |
83 | *(.sbss*) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 84 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 85 | . = ALIGN(4); |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 86 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 87 | __bss_end = . ; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 88 | PROVIDE (end = .); |
89 | } |