blob: 4927736b9bb67ed436ade347ab40faf53eea5d83 [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 {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000024 arch/arm/cpu/arm926ejs/spear/start.o (.text*)
25 *(.text*)
Stefan Roese4ae8bc42012-01-03 16:49:01 +010026 }
27
28 . = ALIGN(4);
29 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
30
31 . = ALIGN(4);
32 .data : {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000033 *(.data*)
Stefan Roese4ae8bc42012-01-03 16:49:01 +010034 }
35
36 . = ALIGN(4);
Stefan Roese4ae8bc42012-01-03 16:49:01 +010037
Stefan Roese4ae8bc42012-01-03 16:49:01 +010038 .rel.dyn : {
39 __rel_dyn_start = .;
40 *(.rel*)
41 __rel_dyn_end = .;
42 }
43
Stefan Roese4ae8bc42012-01-03 16:49:01 +010044 .bss : {
45 . = ALIGN(4);
46 __bss_start = .;
47 *(.bss*)
48 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000049 __bss_end = .;
Stefan Roese4ae8bc42012-01-03 16:49:01 +010050 }
51
52 _end = .;
53
54 /DISCARD/ : { *(.dynstr*) }
55 /DISCARD/ : { *(.dynsym*) }
56 /DISCARD/ : { *(.dynamic*) }
57 /DISCARD/ : { *(.hash*) }
58 /DISCARD/ : { *(.plt*) }
59 /DISCARD/ : { *(.interp*) }
60 /DISCARD/ : { *(.gnu*) }
61}