Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2010-2017 CS Systemes d'Information |
| 4 | * Christophe Leroy <christophe.leroy@c-s.fr> |
| 5 | * |
| 6 | * (C) Copyright 2001-2003 |
| 7 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 8 | * |
| 9 | * Modified by Yuli Barcohen <yuli@arabellasw.com> |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | OUTPUT_ARCH(powerpc) |
| 13 | SECTIONS |
| 14 | { |
| 15 | /* Read-only sections, merged into text segment: */ |
| 16 | . = + SIZEOF_HEADERS; |
| 17 | .text : |
| 18 | { |
| 19 | arch/powerpc/cpu/mpc8xx/start.o (.text) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 20 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 21 | arch/powerpc/lib/built-in.o (.text*) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 22 | drivers/net/built-in.o (.text*) |
| 23 | |
Christophe Leroy | 92b792b | 2018-03-16 17:20:55 +0100 | [diff] [blame] | 24 | . = DEFINED(env_offset) ? env_offset : .; |
| 25 | env/embedded.o (.text.environment) |
| 26 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 27 | *(.text) |
| 28 | } |
| 29 | _etext = .; |
| 30 | PROVIDE (etext = .); |
| 31 | .rodata : |
| 32 | { |
| 33 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 34 | } |
| 35 | |
| 36 | /* Read-write section, merged into data segment: */ |
| 37 | . = (. + 0x0FFF) & 0xFFFFF000; |
| 38 | _erotext = .; |
| 39 | PROVIDE (erotext = .); |
| 40 | .reloc : |
| 41 | { |
| 42 | _GOT2_TABLE_ = .; |
| 43 | KEEP(*(.got2)) |
| 44 | KEEP(*(.got)) |
| 45 | _FIXUP_TABLE_ = .; |
| 46 | KEEP(*(.fixup)) |
| 47 | } |
| 48 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
| 49 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
| 50 | |
| 51 | .data : |
| 52 | { |
| 53 | *(.data*) |
| 54 | *(.sdata*) |
| 55 | } |
| 56 | _edata = .; |
| 57 | PROVIDE (edata = .); |
| 58 | |
| 59 | . = .; |
| 60 | |
| 61 | . = ALIGN(4); |
| 62 | .u_boot_list : { |
| 63 | KEEP(*(SORT(.u_boot_list*))); |
| 64 | } |
| 65 | |
| 66 | . = .; |
| 67 | __start___ex_table = .; |
| 68 | __ex_table : { *(__ex_table) } |
| 69 | __stop___ex_table = .; |
| 70 | |
Christophe Leroy | daf328a | 2018-11-21 08:51:43 +0000 | [diff] [blame] | 71 | /* |
| 72 | * _end - This is end of u-boot.bin image. |
| 73 | * dtb will be appended here to make u-boot-dtb.bin |
| 74 | */ |
| 75 | _end = .; |
| 76 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 77 | . = ALIGN(4096); |
| 78 | __init_begin = .; |
| 79 | .text.init : { *(.text.init) } |
| 80 | .data.init : { *(.data.init) } |
| 81 | . = ALIGN(4096); |
| 82 | __init_end = .; |
| 83 | |
| 84 | __bss_start = .; |
| 85 | .bss (NOLOAD) : |
| 86 | { |
| 87 | *(.bss*) |
| 88 | *(.sbss*) |
| 89 | *(COMMON) |
| 90 | . = ALIGN(4); |
| 91 | } |
| 92 | __bss_end = . ; |
| 93 | PROVIDE (end = .); |
| 94 | } |
| 95 | ENTRY(_start) |