X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fntoskrnl%2Fntoskrnl.lnk;h=c759babe6b96c8eb95fc7094301b64e624a83ccf;hp=540669541f0f32718d0f9ff19ff6108ed11dd2bc;hb=39f36b9840fec29c79319c894419030747dcbdee;hpb=381057612cb1ea648128036766d389d13a3bfc7d diff --git a/reactos/ntoskrnl/ntoskrnl.lnk b/reactos/ntoskrnl/ntoskrnl.lnk index 540669541f0..c759babe6b9 100644 --- a/reactos/ntoskrnl/ntoskrnl.lnk +++ b/reactos/ntoskrnl/ntoskrnl.lnk @@ -20,7 +20,13 @@ SECTIONS __text_end__ = .; *(.gcc_except_table) } - /* The Cygwin32 library uses a section to avoid copying certain data + init BLOCK(__section_alignment__) : + { + __init_start__ = . ; + *(init) + __init_end__ = . ; + } + /* The Cygwin32 library uses a section to avoid copying certain data on fork. This used to be named ".data". The linker used to include this between __data_start__ and __data_end__, but that breaks building the cygwin32 dll. Instead, we name the section @@ -51,6 +57,7 @@ SECTIONS *(.debug$F) *(.drectve) } + .idata BLOCK(__section_alignment__) : { /* This cannot currently be handled with grouped sections. @@ -59,7 +66,7 @@ SECTIONS SORT(*)(.idata$3) /* These zeroes mark the end of the import list. */ LONG (0); LONG (0); LONG (0); LONG (0); LONG (0); - SORT(*)(.idata$4) + SORT(*)(.idata$4) SORT(*)(.idata$5) SORT(*)(.idata$6) SORT(*)(.idata$7) @@ -80,12 +87,12 @@ SECTIONS *(COMMON) __bss_end__ = . ; } -/* .reloc BLOCK(__section_alignment__) : { - *(.reloc) + *(.reloc) + /* These zeroes mark the end of the reloc section. */ + LONG (0); LONG (0); LONG (0); LONG (0); LONG (0); } -*/ .stab BLOCK(__section_alignment__) (NOLOAD) : { [ .stab ]