blob: cb29a22b1ea9c3190881772a19d77fe804796ec9 [file] [log] [blame]
Wolfgang Denk994ad962006-10-24 14:42:37 +02001/* -*- Fundamental -*-
2 *
3 * Copyright (C) 2005-2006 Atmel Corporation
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk994ad962006-10-24 14:42:37 +02006 */
Wolfgang Denk994ad962006-10-24 14:42:37 +02007OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
8OUTPUT_ARCH(avr32)
9ENTRY(_start)
10
11SECTIONS
12{
Haavard Skinnemoen79f35b92006-10-25 15:48:59 +020013 . = 0;
Wolfgang Denk994ad962006-10-24 14:42:37 +020014 _text = .;
15 .text : {
Haavard Skinnemoen2b56a4b2008-05-02 15:32:57 +020016 *(.exception.text)
Wolfgang Denk994ad962006-10-24 14:42:37 +020017 *(.text)
18 *(.text.*)
19 }
Haavard Skinnemoenabf19bf2006-11-20 15:53:10 +010020 _etext = .;
Wolfgang Denk994ad962006-10-24 14:42:37 +020021
Wolfgang Denk994ad962006-10-24 14:42:37 +020022 .rodata : {
Trent Piepho4438e5e2009-02-18 15:22:05 -080023 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Wolfgang Denk994ad962006-10-24 14:42:37 +020024 }
Wolfgang Denk994ad962006-10-24 14:42:37 +020025
Haavard Skinnemoenabf19bf2006-11-20 15:53:10 +010026 . = ALIGN(8);
Wolfgang Denk994ad962006-10-24 14:42:37 +020027 _data = .;
Haavard Skinnemoenabf19bf2006-11-20 15:53:10 +010028 .data : {
Wolfgang Denk994ad962006-10-24 14:42:37 +020029 *(.data)
30 *(.data.*)
31 }
32
33 . = ALIGN(4);
Wolfgang Denk994ad962006-10-24 14:42:37 +020034
Haavard Skinnemoenabf19bf2006-11-20 15:53:10 +010035 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000036 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000037 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000038 }
39
40 . = ALIGN(4);
Haavard Skinnemoenabf19bf2006-11-20 15:53:10 +010041 _got = .;
42 .got : {
43 *(.got)
44 }
45 _egot = .;
46
Wolfgang Denk994ad962006-10-24 14:42:37 +020047 . = ALIGN(8);
48 _edata = .;
Wolfgang Denk994ad962006-10-24 14:42:37 +020049
Wolfgang Denk828a9782008-01-12 20:31:39 +010050 .bss (NOLOAD) : {
Wolfgang Denk994ad962006-10-24 14:42:37 +020051 *(.bss)
52 *(.bss.*)
53 }
54 . = ALIGN(8);
Simon Glassed70c8f2013-03-14 06:54:53 +000055 __bss_end = .;
Wolfgang Denk994ad962006-10-24 14:42:37 +020056}