blob: c7ee19912f86f0e374473a32270befc2701b973b [file] [log] [blame]
Stefan Roese4ae8bc42012-01-03 16:49:01 +01001/*
2 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
3 * on behalf of DENX Software Engineering GmbH
4 *
5 * January 2004 - Changed to support H4 device
6 * Copyright (c) 2004-2008 Texas Instruments
7 *
8 * (C) Copyright 2002
9 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
10 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
Stefan Roese4ae8bc42012-01-03 16:49:01 +010012 */
13
14OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
15OUTPUT_ARCH(arm)
16ENTRY(_start)
17SECTIONS
18{
19 . = 0x00000000;
20
21 . = ALIGN(4);
22 .text :
23 {
Albert ARIBAUD41623c92014-04-15 16:13:51 +020024 *(.vectors)
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000025 arch/arm/cpu/arm926ejs/spear/start.o (.text*)
26 *(.text*)
Stefan Roese4ae8bc42012-01-03 16:49:01 +010027 }
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
31
32 . = ALIGN(4);
33 .data : {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000034 *(.data*)
Stefan Roese4ae8bc42012-01-03 16:49:01 +010035 }
36
37 . = ALIGN(4);
Stefan Roese4ae8bc42012-01-03 16:49:01 +010038
Stefan Roese4ae8bc42012-01-03 16:49:01 +010039 .rel.dyn : {
40 __rel_dyn_start = .;
41 *(.rel*)
42 __rel_dyn_end = .;
43 }
44
Stefan Roese4ae8bc42012-01-03 16:49:01 +010045 .bss : {
46 . = ALIGN(4);
47 __bss_start = .;
48 *(.bss*)
49 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000050 __bss_end = .;
Stefan Roese4ae8bc42012-01-03 16:49:01 +010051 }
52
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010053 .end :
54 {
55 *(.__end)
56 }
Stefan Roese4ae8bc42012-01-03 16:49:01 +010057
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010058 _image_binary_end = .;
59
60 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +010061 .dynbss : { *(.dynbss) }
62 .dynstr : { *(.dynstr*) }
63 .dynamic : { *(.dynamic*) }
64 .hash : { *(.hash*) }
65 .plt : { *(.plt*) }
66 .interp : { *(.interp*) }
67 .gnu : { *(.gnu*) }
68 .ARM.exidx : { *(.ARM.exidx*) }
Stefan Roese4ae8bc42012-01-03 16:49:01 +010069}