Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [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+ |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_FORMAT ("elf32-bigarm", "elf32-bigarm", "elf32-bigarm") | ||||
9 | OUTPUT_ARCH (arm) | ||||
10 | ENTRY (_start) | ||||
11 | SECTIONS | ||||
12 | { | ||||
13 | . = 0x00000000; | ||||
14 | |||||
15 | . = ALIGN (4); | ||||
16 | .text : { | ||||
Albert ARIBAUD | d026dec | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 17 | *(.__image_copy_start) |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 18 | arch/arm/cpu/ixp/start.o(.text*) |
19 | net/libnet.o(.text*) | ||||
20 | board/actux1/libactux1.o(.text*) | ||||
21 | arch/arm/cpu/ixp/libixp.o(.text*) | ||||
Tom Rini | 1fb187b | 2012-10-17 10:18:29 +0000 | [diff] [blame] | 22 | drivers/input/libinput.o(.text*) |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 23 | |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 24 | . = env_offset; |
Jean-Christophe PLAGNIOL-VILLARD | 0cf4fd3 | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 25 | common/env_embedded.o(.ppcenv) |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 26 | *(.text*) |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 27 | } |
28 | |||||
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 29 | . = ALIGN(4); |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 30 | .rodata : { |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 31 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 32 | } |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 33 | . = ALIGN(4); |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 34 | .data : { |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 35 | *(.data*) |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 36 | } |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 37 | . = ALIGN(4); |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 38 | .got : { |
39 | *(.got) | ||||
40 | } | ||||
41 | . =.; | ||||
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 42 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 43 | . = ALIGN(4); |
44 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 45 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 46 | } |
47 | |||||
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 48 | . = ALIGN (4); |
Benoît Thébaudeau | 7086e91 | 2013-04-11 09:35:46 +0000 | [diff] [blame] | 49 | |
Albert ARIBAUD | d026dec | 2013-06-11 14:17:33 +0200 | [diff] [blame] | 50 | .image_copy_end : |
51 | { | ||||
52 | *(.__image_copy_end) | ||||
53 | } | ||||
Benoît Thébaudeau | 7086e91 | 2013-04-11 09:35:46 +0000 | [diff] [blame] | 54 | |
Albert ARIBAUD | 47bd65e | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 55 | .rel_dyn_start : |
56 | { | ||||
57 | *(.__rel_dyn_start) | ||||
58 | } | ||||
59 | |||||
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 60 | .rel.dyn : { |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 61 | *(.rel*) |
Albert ARIBAUD | 47bd65e | 2013-06-11 14:17:34 +0200 | [diff] [blame] | 62 | } |
63 | |||||
64 | .rel_dyn_end : | ||||
65 | { | ||||
66 | *(.__rel_dyn_end) | ||||
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 67 | } |
68 | |||||
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 69 | _end = .; |
70 | |||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 71 | /* |
72 | * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c | ||||
73 | * __bss_base and __bss_limit are for linker only (overlay ordering) | ||||
74 | */ | ||||
75 | |||||
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 76 | .bss_start __rel_dyn_start (OVERLAY) : { |
77 | KEEP(*(.__bss_start)); | ||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 78 | __bss_base = .; |
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 79 | } |
80 | |||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 81 | .bss __bss_base (OVERLAY) : { |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 82 | *(.bss*) |
83 | . = ALIGN(4); | ||||
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 84 | __bss_limit = .; |
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 85 | } |
Albert ARIBAUD | f84a7b8 | 2013-04-11 05:43:21 +0000 | [diff] [blame] | 86 | .bss_end __bss_limit (OVERLAY) : { |
87 | KEEP(*(.__bss_end)); | ||||
Albert ARIBAUD | 3ebd1cb | 2013-02-25 00:58:59 +0000 | [diff] [blame] | 88 | } |
89 | |||||
Albert ARIBAUD | 09d8118 | 2013-06-11 14:17:31 +0200 | [diff] [blame] | 90 | /DISCARD/ : { *(.dynsym) } |
Michael Schwingen | 517c5df | 2011-05-23 00:00:04 +0200 | [diff] [blame] | 91 | /DISCARD/ : { *(.dynstr*) } |
92 | /DISCARD/ : { *(.dynamic*) } | ||||
93 | /DISCARD/ : { *(.plt*) } | ||||
94 | /DISCARD/ : { *(.interp*) } | ||||
95 | /DISCARD/ : { *(.gnu*) } | ||||
Michael Schwingen | ea99e8f | 2008-01-16 19:50:37 +0100 | [diff] [blame] | 96 | } |