Fix the size of the property fields.
[qemu/navara.git] / i386.ld
blobf2dafecc1a5f3ca01d96830670212ee7fddb07b3
1 /* ld script to make i386 Linux kernel
2  * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
3  */
4 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
5 OUTPUT_ARCH(i386)
6 ENTRY(_start)
7 SECTIONS
9   /* Read-only sections, merged into text segment: */
10   . = 0x60000000 + SIZEOF_HEADERS;
11   .interp     : { *(.interp)    }
12   .hash          : { *(.hash)           }
13   .dynsym        : { *(.dynsym)         }
14   .dynstr        : { *(.dynstr)         }
15   .gnu.version   : { *(.gnu.version)    }
16   .gnu.version_d   : { *(.gnu.version_d)        }
17   .gnu.version_r   : { *(.gnu.version_r)        }
18   .rel.text      :
19     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
20   .rela.text     :
21     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
22   .rel.data      :
23     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
24   .rela.data     :
25     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
26   .rel.rodata    :
27     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
28   .rela.rodata   :
29     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
30   .rel.got       : { *(.rel.got)                }
31   .rela.got      : { *(.rela.got)               }
32   .rel.ctors     : { *(.rel.ctors)      }
33   .rela.ctors    : { *(.rela.ctors)     }
34   .rel.dtors     : { *(.rel.dtors)      }
35   .rela.dtors    : { *(.rela.dtors)     }
36   .rel.init      : { *(.rel.init)       }
37   .rela.init     : { *(.rela.init)      }
38   .rel.fini      : { *(.rel.fini)       }
39   .rela.fini     : { *(.rela.fini)      }
40   .rel.bss       : { *(.rel.bss)                }
41   .rela.bss      : { *(.rela.bss)               }
42   .rel.plt       : { *(.rel.plt)                }
43   .rela.plt      : { *(.rela.plt)               }
44   .init          : { *(.init)   } =0x47ff041f
45   .text      :
46   {
47     *(.text)
48     /* .gnu.warning sections are handled specially by elf32.em.  */
49     *(.gnu.warning)
50     *(.gnu.linkonce.t*)
51   } =0x47ff041f
52   _etext = .;
53   PROVIDE (etext = .);
54   .fini      : { *(.fini)    } =0x47ff041f
55   . = ALIGN(32 / 8);
56   PROVIDE (__preinit_array_start = .);
57   .preinit_array     : { *(.preinit_array) }
58   PROVIDE (__preinit_array_end = .);
59   PROVIDE (__init_array_start = .);
60   .init_array     : { *(.init_array) }
61   PROVIDE (__init_array_end = .);
62   PROVIDE (__fini_array_start = .);
63   .fini_array     : { *(.fini_array) }
64   PROVIDE (__fini_array_end = .);
65   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
66   .rodata1   : { *(.rodata1) }
67   .reginfo : { *(.reginfo) }
68   /* Adjust the address for the data segment.  We want to adjust up to
69      the same address within the page on the next page up.  */
70   . = ALIGN(0x100000) + (. & (0x100000 - 1));
71   .tdata          : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
72   .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
73   .data    :
74   {
75     *(.data)
76     *(.gnu.linkonce.d*)
77     CONSTRUCTORS
78   }
79   .data1   : { *(.data1) }
80   .ctors         :
81   {
82     *(.ctors)
83   }
84   .dtors         :
85   {
86     *(.dtors)
87   }
88   .plt      : { *(.plt) }
89   .got           : { *(.got.plt) *(.got) }
90   .dynamic       : { *(.dynamic) }
91   /* We want the small data sections together, so single-instruction offsets
92      can access them all, and initialized data all before uninitialized, so
93      we can shorten the on-disk segment size.  */
94   .sdata     : { *(.sdata) }
95   _edata  =  .;
96   PROVIDE (edata = .);
97   __bss_start = .;
98   .sbss      : { *(.sbss) *(.scommon) }
99   .bss       :
100   {
101    *(.dynbss)
102    *(.bss)
103    *(COMMON)
104   }
105   _end = . ;
106   PROVIDE (end = .);
107   /* Stabs debugging sections.  */
108   .stab 0 : { *(.stab) }
109   .stabstr 0 : { *(.stabstr) }
110   .stab.excl 0 : { *(.stab.excl) }
111   .stab.exclstr 0 : { *(.stab.exclstr) }
112   .stab.index 0 : { *(.stab.index) }
113   .stab.indexstr 0 : { *(.stab.indexstr) }
114   .comment 0 : { *(.comment) }
115   /* DWARF debug sections.
116      Symbols in the DWARF debugging sections are relative to the beginning
117      of the section so we begin them at 0.  */
118   /* DWARF 1 */
119   .debug          0 : { *(.debug) }
120   .line           0 : { *(.line) }
121   /* GNU DWARF 1 extensions */
122   .debug_srcinfo  0 : { *(.debug_srcinfo) }
123   .debug_sfnames  0 : { *(.debug_sfnames) }
124   /* DWARF 1.1 and DWARF 2 */
125   .debug_aranges  0 : { *(.debug_aranges) }
126   .debug_pubnames 0 : { *(.debug_pubnames) }
127   /* DWARF 2 */
128   .debug_info     0 : { *(.debug_info) }
129   .debug_abbrev   0 : { *(.debug_abbrev) }
130   .debug_line     0 : { *(.debug_line) }
131   .debug_frame    0 : { *(.debug_frame) }
132   .debug_str      0 : { *(.debug_str) }
133   .debug_loc      0 : { *(.debug_loc) }
134   .debug_macinfo  0 : { *(.debug_macinfo) }
135   /* SGI/MIPS DWARF 2 extensions */
136   .debug_weaknames 0 : { *(.debug_weaknames) }
137   .debug_funcnames 0 : { *(.debug_funcnames) }
138   .debug_typenames 0 : { *(.debug_typenames) }
139   .debug_varnames  0 : { *(.debug_varnames) }
140   /* These must appear regardless of  .  */