KD System Rewrite:
[reactos.git] / reactos / ntoskrnl / ntoskrnl.dbg.lnk
1 OUTPUT_FORMAT(pei-i386)
2 ENTRY(_mainCRTStartup)
3 SECTIONS
4 {
5 /DISCARD/ :
6 {
7 *(.init)
8 *(.text)
9 *(SORT(.text$*))
10 *(.glue_7t)
11 *(.glue_7)
12 *(.fini)
13 /* ??? Why is .gcc_exc here? */
14 *(.gcc_exc)
15 *(.gcc_except_table)
16 }
17 /DISCARD/ :
18 {
19 *(init)
20 }
21 /* The Cygwin32 library uses a section to avoid copying certain data
22 on fork. This used to be named ".data". The linker used
23 to include this between __data_start__ and __data_end__, but that
24 breaks building the cygwin32 dll. Instead, we name the section
25 ".data_cygwin_nocopy" and explictly include it after __data_end__. */
26 /DISCARD/ :
27 {
28 *(.data)
29 *(.data2)
30 *(SORT(.data$*))
31 *(.data_cygwin_nocopy)
32 }
33 /DISCARD/ :
34 {
35 *(.rdata)
36 *(SORT(.rdata$*))
37 *(.eh_frame)
38 }
39 /DISCARD/ :
40 {
41 *(.edata)
42 }
43 /DISCARD/ :
44 {
45 *(.debug$S)
46 *(.debug$T)
47 *(.debug$F)
48 *(.drectve)
49 }
50 /DISCARD/ :
51 {
52 /* This cannot currently be handled with grouped sections.
53 See pe.em:sort_sections. */
54 SORT(*)(.idata$2)
55 SORT(*)(.idata$3)
56 /* These zeroes mark the end of the import list. */
57 /* LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);*/
58 SORT(*)(.idata$4)
59 SORT(*)(.idata$5)
60 SORT(*)(.idata$6)
61 SORT(*)(.idata$7)
62 }
63 /DISCARD/ :
64 {
65 *(SORT(.CRT$*))
66 }
67 /DISCARD/ :
68 {
69 *(.rsrc)
70 *(SORT(.rsrc$*))
71 }
72 /DISCARD/ :
73 {
74 *(.bss)
75 *(COMMON)
76 }
77 /DISCARD/ :
78 {
79 *(.reloc)
80 }
81 .stab BLOCK(__section_alignment__) (NOLOAD) :
82 {
83 [ .stab ]
84 }
85 .stabstr BLOCK(__section_alignment__) (NOLOAD) :
86 {
87 [ .stabstr ]
88 }
89 }
90