Ilya Ledvich | 791ca18 | 2013-11-07 07:57:33 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2004-2008 Texas Instruments |
| 3 | * |
| 4 | * (C) Copyright 2002 |
| 5 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 11 | OUTPUT_ARCH(arm) |
| 12 | ENTRY(_start) |
| 13 | SECTIONS |
| 14 | { |
| 15 | . = 0x00000000; |
| 16 | |
| 17 | . = ALIGN(4); |
| 18 | .text : |
| 19 | { |
| 20 | *(.__image_copy_start) |
Albert ARIBAUD | 9852cc6 | 2014-04-15 16:13:51 +0200 | [diff] [blame] | 21 | *(.vectors) |
Ilya Ledvich | 791ca18 | 2013-11-07 07:57:33 +0200 | [diff] [blame] | 22 | CPUDIR/start.o (.text*) |
Albert ARIBAUD | 1d17de6 | 2013-12-10 14:31:56 +0100 | [diff] [blame] | 23 | board/compulab/cm_t335/built-in.o (.text*) |
Ilya Ledvich | 791ca18 | 2013-11-07 07:57:33 +0200 | [diff] [blame] | 24 | *(.text*) |
| 25 | } |
| 26 | |
| 27 | . = ALIGN(4); |
| 28 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 29 | |
| 30 | . = ALIGN(4); |
| 31 | .data : { |
| 32 | *(.data*) |
| 33 | } |
| 34 | |
| 35 | . = ALIGN(4); |
| 36 | |
| 37 | . = .; |
| 38 | |
| 39 | . = ALIGN(4); |
| 40 | .u_boot_list : { |
| 41 | KEEP(*(SORT(.u_boot_list*))); |
| 42 | } |
| 43 | |
| 44 | . = ALIGN(4); |
| 45 | |
| 46 | .image_copy_end : |
| 47 | { |
| 48 | *(.__image_copy_end) |
| 49 | } |
| 50 | |
| 51 | .rel_dyn_start : |
| 52 | { |
| 53 | *(.__rel_dyn_start) |
| 54 | } |
| 55 | |
| 56 | .rel.dyn : { |
| 57 | *(.rel*) |
| 58 | } |
| 59 | |
| 60 | .rel_dyn_end : |
| 61 | { |
| 62 | *(.__rel_dyn_end) |
| 63 | } |
| 64 | |
Simon Glass | 1f577b9 | 2014-06-02 22:04:45 -0600 | [diff] [blame^] | 65 | .hash : { *(.hash*) } |
| 66 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 67 | .end : |
| 68 | { |
| 69 | *(.__end) |
| 70 | } |
| 71 | |
| 72 | _image_binary_end = .; |
Ilya Ledvich | 791ca18 | 2013-11-07 07:57:33 +0200 | [diff] [blame] | 73 | |
| 74 | /* |
| 75 | * Deprecated: this MMU section is used by pxa at present but |
| 76 | * should not be used by new boards/CPUs. |
| 77 | */ |
| 78 | . = ALIGN(4096); |
| 79 | .mmutable : { |
| 80 | *(.mmutable) |
| 81 | } |
| 82 | |
| 83 | /* |
| 84 | * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c |
| 85 | * __bss_base and __bss_limit are for linker only (overlay ordering) |
| 86 | */ |
| 87 | |
| 88 | .bss_start __rel_dyn_start (OVERLAY) : { |
| 89 | KEEP(*(.__bss_start)); |
| 90 | __bss_base = .; |
| 91 | } |
| 92 | |
| 93 | .bss __bss_base (OVERLAY) : { |
| 94 | *(.bss*) |
| 95 | . = ALIGN(4); |
| 96 | __bss_limit = .; |
| 97 | } |
| 98 | |
| 99 | .bss_end __bss_limit (OVERLAY) : { |
| 100 | KEEP(*(.__bss_end)); |
| 101 | } |
| 102 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 103 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | c6b3be6 | 2014-02-22 17:53:41 +0100 | [diff] [blame] | 104 | .dynbss : { *(.dynbss) } |
| 105 | .dynstr : { *(.dynstr*) } |
| 106 | .dynamic : { *(.dynamic*) } |
| 107 | .plt : { *(.plt*) } |
| 108 | .interp : { *(.interp*) } |
| 109 | .gnu : { *(.gnu*) } |
| 110 | .ARM.exidx : { *(.ARM.exidx*) } |
Ilya Ledvich | 791ca18 | 2013-11-07 07:57:33 +0200 | [diff] [blame] | 111 | } |