wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2001 | ||||
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
4 | * | ||||
Wolfgang Denk | 1a45966 | 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) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 9 | /* Do we need any of these for elf? |
10 | __DYNAMIC = 0; */ | ||||
11 | SECTIONS | ||||
12 | { | ||||
13 | /* Read-only sections, merged into text segment: */ | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 14 | .text : |
15 | { | ||||
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 16 | arch/powerpc/cpu/mpc824x/start.o (.text*) |
17 | *(.text*) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 18 | . = ALIGN(16); |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 19 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 20 | } |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 21 | |
22 | /* Read-write section, merged into data segment: */ | ||||
23 | . = (. + 0x0FF) & 0xFFFFFF00; | ||||
24 | _erotext = .; | ||||
25 | PROVIDE (erotext = .); | ||||
26 | .reloc : | ||||
27 | { | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 28 | _GOT2_TABLE_ = .; |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 29 | KEEP(*(.got2)) |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 30 | KEEP(*(.got)) |
31 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 32 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 33 | KEEP(*(.fixup)) |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 34 | } |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 35 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 36 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
37 | |||||
38 | .data : | ||||
39 | { | ||||
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 40 | *(.data*) |
41 | *(.sdata*) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 42 | } |
43 | _edata = .; | ||||
44 | PROVIDE (edata = .); | ||||
45 | |||||
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 46 | . = .; |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 47 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 48 | . = ALIGN(4); |
49 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 50 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 51 | } |
52 | |||||
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 53 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 54 | . = .; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 55 | __start___ex_table = .; |
56 | __ex_table : { *(__ex_table) } | ||||
57 | __stop___ex_table = .; | ||||
58 | |||||
59 | . = ALIGN(4096); | ||||
60 | __init_begin = .; | ||||
61 | .text.init : { *(.text.init) } | ||||
62 | .data.init : { *(.data.init) } | ||||
63 | . = ALIGN(4096); | ||||
64 | __init_end = .; | ||||
65 | |||||
66 | __bss_start = .; | ||||
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 67 | .bss (NOLOAD) : |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 68 | { |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 69 | *(.bss*) |
70 | *(.sbss*) | ||||
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 71 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 72 | . = ALIGN(4); |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 73 | } |
74 | |||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 75 | __bss_end = . ; |
wdenk | 2f54faa | 2002-08-14 10:07:21 +0000 | [diff] [blame] | 76 | PROVIDE (end = .); |
77 | } |