1/*
2 * Copyright (c) 2007, 2008, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10OUTPUT_FORMAT("elf64-x86-64")
11OUTPUT_ARCH("i386:x86-64")
12
13_start_img = 0x100000;
14
15SECTIONS {
16        . = ALIGN(4k);
17        .text 0x100000 : ALIGN(4k)
18        {
19                *(.text);
20        }
21        _end_kernel_text = .;
22
23        . = ALIGN(4k);
24        .rodata . :
25        {
26                *(.rodata);
27
28	       /* Force module images to all be page aligned  */
29               . = ALIGN(4k);
30               *(.rodata1); 
31               . = ALIGN(4k);
32               *(.rodata2); 
33               . = ALIGN(4k);
34               *(.rodata3); 
35               . = ALIGN(4k);
36               *(.rodata4); 
37               . = ALIGN(4k);
38               *(.rodata5); 
39               . = ALIGN(4k);
40               *(.rodata6); 
41               . = ALIGN(4k);
42               *(.rodata7); 
43               . = ALIGN(4k);
44               *(.rodata8); 
45               . = ALIGN(4k);
46               *(.rodata9); 
47               . = ALIGN(4k);
48               *(.rodata10); 
49               . = ALIGN(4k);
50               *(.rodata11); 
51               . = ALIGN(4k);
52               *(.rodata12); 
53               . = ALIGN(4k);
54               *(.rodata13); 
55               . = ALIGN(4k);
56               *(.rodata14); 
57               . = ALIGN(4k);
58               *(.rodata15); 
59               . = ALIGN(4k);
60               *(.rodata16); 
61        }
62
63        .bss . :
64        {
65                *(.bss);
66        }
67
68        _end_img = .;
69
70        /***** These sections get discarded *****/
71        /DISCARD/ :
72        {
73                /* Discard exception handler frames and headers -- we don't use em */
74                *(.eh_frame);
75                *(.eh_frame_hdr);
76		*(.note.gnu.build-id);
77                *(.interp);
78/*              *(.dynsym); */
79/*              *(.dynstr); */
80/*              *(.hash); */
81/*              *(.gnu.hash); */
82                *(.dynamic);
83        }
84}
85