netdevice.h: fix kernel-doc warning
[linux-2.6/btrfs-unstable.git] / arch / s390 / kernel / vmlinux.lds.S
blob3667d20e997f3ccac943438ad2e03588795afb33
1 /* ld script to make s390 Linux kernel
2  * Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
3  */
5 #include <asm/thread_info.h>
6 #include <asm/page.h>
8 /*
9  * Put .bss..swapper_pg_dir as the first thing in .bss. This will
10  * make sure it has 16k alignment.
11  */
12 #define BSS_FIRST_SECTIONS *(.bss..swapper_pg_dir)
14 /* Handle ro_after_init data on our own. */
15 #define RO_AFTER_INIT_DATA
17 #include <asm-generic/vmlinux.lds.h>
19 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
20 OUTPUT_ARCH(s390:64-bit)
21 ENTRY(startup)
22 jiffies = jiffies_64;
24 PHDRS {
25         text PT_LOAD FLAGS(5);  /* R_E */
26         data PT_LOAD FLAGS(7);  /* RWE */
27         note PT_NOTE FLAGS(0);  /* ___ */
30 SECTIONS
32         . = 0x00000000;
33         .text : {
34         _text = .;              /* Text and read-only data */
35                 HEAD_TEXT
36                 TEXT_TEXT
37                 SCHED_TEXT
38                 CPUIDLE_TEXT
39                 LOCK_TEXT
40                 KPROBES_TEXT
41                 IRQENTRY_TEXT
42                 SOFTIRQENTRY_TEXT
43                 *(.fixup)
44                 *(.gnu.warning)
45         } :text = 0x0700
47         _etext = .;             /* End of text section */
49         NOTES :text :note
51         .dummy : { *(.dummy) } :data
53         RO_DATA_SECTION(PAGE_SIZE)
55 #ifdef CONFIG_SHARED_KERNEL
56         . = ALIGN(0x100000);    /* VM shared segments are 1MB aligned */
57 #endif
59         . = ALIGN(PAGE_SIZE);
60         _eshared = .;           /* End of shareable data */
61         _sdata = .;             /* Start of data section */
63         . = ALIGN(PAGE_SIZE);
64         __start_ro_after_init = .;
65         __start_data_ro_after_init = .;
66         .data..ro_after_init : {
67                  *(.data..ro_after_init)
68         }
69         __end_data_ro_after_init = .;
70         EXCEPTION_TABLE(16)
71         . = ALIGN(PAGE_SIZE);
72         __end_ro_after_init = .;
74         RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE)
76         _edata = .;             /* End of data section */
78         /* will be freed after init */
79         . = ALIGN(PAGE_SIZE);   /* Init code and data */
80         __init_begin = .;
82         INIT_TEXT_SECTION(PAGE_SIZE)
84         /*
85          * .exit.text is discarded at runtime, not link time,
86          * to deal with references from __bug_table
87         */
88         .exit.text : {
89                 EXIT_TEXT
90         }
92         .exit.data : {
93                 EXIT_DATA
94         }
96         /* early.c uses stsi, which requires page aligned data. */
97         . = ALIGN(PAGE_SIZE);
98         INIT_DATA_SECTION(0x100)
100         PERCPU_SECTION(0x100)
101         . = ALIGN(PAGE_SIZE);
102         __init_end = .;         /* freed after init ends here */
104         BSS_SECTION(PAGE_SIZE, 4 * PAGE_SIZE, PAGE_SIZE)
106         _end = . ;
108         /* Debugging sections.  */
109         STABS_DEBUG
110         DWARF_DEBUG
112         /* Sections to be discarded */
113         DISCARDS