blob: cb29a22b1ea9c3190881772a19d77fe804796ec9 [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) : {
Wolfgang Denk6ccec442006-10-24 14:42:37 +020051 *(.bss)
52 *(.bss.*)
53 }
54 . = ALIGN(8);
Simon Glass3929fb02013-03-14 06:54:53 +000055 __bss_end = .;
Wolfgang Denk6ccec442006-10-24 14:42:37 +020056}