wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 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 | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_ARCH(powerpc) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +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: */ |
| 14 | . = + SIZEOF_HEADERS; |
| 15 | .interp : { *(.interp) } |
| 16 | .hash : { *(.hash) } |
| 17 | .dynsym : { *(.dynsym) } |
| 18 | .dynstr : { *(.dynstr) } |
| 19 | .rel.text : { *(.rel.text) } |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 20 | .rela.text : { *(.rela.text) } |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 21 | .rel.data : { *(.rel.data) } |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 22 | .rela.data : { *(.rela.data) } |
| 23 | .rel.rodata : { *(.rel.rodata) } |
| 24 | .rela.rodata : { *(.rela.rodata) } |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 25 | .rel.got : { *(.rel.got) } |
| 26 | .rela.got : { *(.rela.got) } |
| 27 | .rel.ctors : { *(.rel.ctors) } |
| 28 | .rela.ctors : { *(.rela.ctors) } |
| 29 | .rel.dtors : { *(.rel.dtors) } |
| 30 | .rela.dtors : { *(.rela.dtors) } |
| 31 | .rel.bss : { *(.rel.bss) } |
| 32 | .rela.bss : { *(.rela.bss) } |
| 33 | .rel.plt : { *(.rel.plt) } |
| 34 | .rela.plt : { *(.rela.plt) } |
| 35 | .init : { *(.init) } |
| 36 | .plt : { *(.plt) } |
| 37 | .text : |
| 38 | { |
Stefan Roese | a47a12b | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 39 | arch/powerpc/cpu/mpc8260/start.o (.text) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 40 | *(.text) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 41 | *(.got1) |
| 42 | /*. = env_offset; */ |
| 43 | } |
| 44 | _etext = .; |
| 45 | PROVIDE (etext = .); |
| 46 | .rodata : |
| 47 | { |
Wolfgang Denk | 7481266 | 2005-12-12 16:06:05 +0100 | [diff] [blame] | 48 | *(.eh_frame) |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 49 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 50 | } |
| 51 | .fini : { *(.fini) } =0 |
| 52 | .ctors : { *(.ctors) } |
| 53 | .dtors : { *(.dtors) } |
| 54 | |
| 55 | /* Read-write section, merged into data segment: */ |
| 56 | . = (. + 0x0FFF) & 0xFFFFF000; |
| 57 | _erotext = .; |
| 58 | PROVIDE (erotext = .); |
| 59 | .reloc : |
| 60 | { |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 61 | _GOT2_TABLE_ = .; |
Joakim Tjernlund | c1fa1b7 | 2011-04-24 10:29:32 +0200 | [diff] [blame] | 62 | KEEP(*(.got2)) |
| 63 | KEEP(*(.got)) |
| 64 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 65 | _FIXUP_TABLE_ = .; |
Joakim Tjernlund | c1fa1b7 | 2011-04-24 10:29:32 +0200 | [diff] [blame] | 66 | KEEP(*(.fixup)) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 67 | } |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 68 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 69 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 70 | |
| 71 | .data : |
| 72 | { |
| 73 | *(.data) |
| 74 | *(.data1) |
| 75 | *(.sdata) |
| 76 | *(.sdata2) |
| 77 | *(.dynamic) |
| 78 | CONSTRUCTORS |
| 79 | } |
| 80 | _edata = .; |
| 81 | PROVIDE (edata = .); |
| 82 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 83 | . = .; |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 84 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 85 | . = ALIGN(4); |
| 86 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 87 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 88 | } |
| 89 | |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 90 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 91 | . = .; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 92 | __start___ex_table = .; |
| 93 | __ex_table : { *(__ex_table) } |
| 94 | __stop___ex_table = .; |
| 95 | |
| 96 | . = ALIGN(4096); |
| 97 | __init_begin = .; |
| 98 | .text.init : { *(.text.init) } |
| 99 | .data.init : { *(.data.init) } |
| 100 | . = ALIGN(4096); |
| 101 | __init_end = .; |
| 102 | |
| 103 | __bss_start = .; |
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 104 | .bss (NOLOAD) : |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 105 | { |
| 106 | *(.sbss) *(.scommon) |
| 107 | *(.dynbss) |
| 108 | *(.bss) |
| 109 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 110 | . = ALIGN(4); |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 111 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 112 | __bss_end = . ; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 113 | PROVIDE (end = .); |
| 114 | } |