Merge branch 'for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[deliverable/linux.git] / arch / avr32 / kernel / vmlinux.lds.S
CommitLineData
5f97f7f9
HS
1/*
2 * AVR32 linker script for the Linux kernel
3 *
4 * Copyright (C) 2004-2006 Atmel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#define LOAD_OFFSET 0x00000000
11#include <asm-generic/vmlinux.lds.h>
7cf6ac2a
HS
12#include <asm/cache.h>
13#include <asm/thread_info.h>
5f97f7f9
HS
14
15OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
16OUTPUT_ARCH(avr32)
17ENTRY(_start)
18
19/* Big endian */
20jiffies = jiffies_64 + 4;
21
22SECTIONS
23{
24 . = CONFIG_ENTRY_ADDRESS;
25 .init : AT(ADDR(.init) - LOAD_OFFSET) {
2e555f8d 26 _text = .;
5f97f7f9
HS
27 __init_begin = .;
28 _sinittext = .;
29 *(.text.reset)
01ba2bdc 30 INIT_TEXT
623b0355
HS
31 /*
32 * .exit.text is discarded at runtime, not
33 * link time, to deal with references from
34 * __bug_table
35 */
01ba2bdc 36 EXIT_TEXT
5f97f7f9
HS
37 _einittext = .;
38 . = ALIGN(4);
39 __tagtable_begin = .;
b3cfe0cb 40 *(.taglist.init)
5f97f7f9 41 __tagtable_end = .;
5f97f7f9 42 }
20920580
NE
43 INIT_DATA_SECTION(16)
44 . = ALIGN(PAGE_SIZE);
45 __init_end = .;
5f97f7f9 46
5f97f7f9
HS
47 .text : AT(ADDR(.text) - LOAD_OFFSET) {
48 _evba = .;
2e555f8d 49 _stext = .;
5f97f7f9 50 *(.ex.text)
5f97f7f9 51 *(.irq.text)
2507bc13 52 KPROBES_TEXT
7664709b 53 TEXT_TEXT
5f97f7f9
HS
54 SCHED_TEXT
55 LOCK_TEXT
5f97f7f9
HS
56 *(.fixup)
57 *(.gnu.warning)
58 _etext = .;
59 } = 0xd703d703
60
20920580 61 EXCEPTION_TABLE(4)
5f97f7f9
HS
62 RODATA
63
5f97f7f9
HS
64 .data : AT(ADDR(.data) - LOAD_OFFSET) {
65 _data = .;
66 _sdata = .;
5f97f7f9 67
20920580
NE
68 INIT_TASK_DATA(THREAD_SIZE)
69 PAGE_ALIGNED_DATA(PAGE_SIZE);
70 CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
5f97f7f9 71 *(.data.rel*)
ca967258 72 DATA_DATA
5f97f7f9
HS
73 CONSTRUCTORS
74
75 _edata = .;
76 }
77
20920580
NE
78 BSS_SECTION(0, 8, 8)
79 _end = .;
5f97f7f9 80
023bf6f1
TH
81 DWARF_DEBUG
82
5f97f7f9
HS
83 /* When something in the kernel is NOT compiled as a module, the module
84 * cleanup code and data are put into these segments. Both can then be
85 * thrown away, as cleanup code is never called unless it's a module.
86 */
023bf6f1 87 DISCARDS
5f97f7f9 88}
This page took 0.650116 seconds and 5 git commands to generate.