blob: b0180e3534591d512c2a31bf4f3c1b93d9db4d94 [file] [log] [blame]
Wolfgang Denk6ccec442006-10-24 14:42:37 +02001/* -*- Fundamental -*-
2 *
3 * Copyright (C) 2005-2006 Atmel Corporation
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk6ccec442006-10-24 14:42:37 +02006 */
Wolfgang Denk6ccec442006-10-24 14:42:37 +02007OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
8OUTPUT_ARCH(avr32)
9ENTRY(_start)
10
11SECTIONS
12{
Haavard Skinnemoen5e3b0bc2006-10-25 15:48:59 +020013 . = 0;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020014 _text = .;
15 .text : {
Haavard Skinnemoencaf83ea2008-05-02 15:32:57 +020016 *(.exception.text)
Wolfgang Denk6ccec442006-10-24 14:42:37 +020017 *(.text)
18 *(.text.*)
19 }
Haavard Skinnemoen1f4f2122006-11-20 15:53:10 +010020 _etext = .;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020021
Wolfgang Denk6ccec442006-10-24 14:42:37 +020022 .rodata : {
Trent Piephof62fb992009-02-18 15:22:05 -080023 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Wolfgang Denk6ccec442006-10-24 14:42:37 +020024 }
Wolfgang Denk6ccec442006-10-24 14:42:37 +020025
Haavard Skinnemoen1f4f2122006-11-20 15:53:10 +010026 . = ALIGN(8);
Wolfgang Denk6ccec442006-10-24 14:42:37 +020027 _data = .;
Haavard Skinnemoen1f4f2122006-11-20 15:53:10 +010028 .data : {
Wolfgang Denk6ccec442006-10-24 14:42:37 +020029 *(.data)
30 *(.data.*)
31 }
32
33 . = ALIGN(4);
Wolfgang Denk6ccec442006-10-24 14:42:37 +020034
Haavard Skinnemoen1f4f2122006-11-20 15:53:10 +010035 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000036 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000037 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000038 }
39
40 . = ALIGN(4);
Haavard Skinnemoen1f4f2122006-11-20 15:53:10 +010041 _got = .;
42 .got : {
43 *(.got)
44 }
45 _egot = .;
46
Wolfgang Denk6ccec442006-10-24 14:42:37 +020047 . = ALIGN(8);
48 _edata = .;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020049
Wolfgang Denk64134f02008-01-12 20:31:39 +010050 .bss (NOLOAD) : {
Andreas Bießmanna752a8b2015-02-06 23:06:48 +010051 __bss_start = .;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020052 *(.bss)
53 *(.bss.*)
54 }
55 . = ALIGN(8);
Simon Glass3929fb02013-03-14 06:54:53 +000056 __bss_end = .;
Andreas Bießmanna752a8b2015-02-06 23:06:48 +010057 __init_end = .;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020058}