mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
c4d8e2a6e9
For MSVC, marking the section as discardable will do this automatically. For GCC, we use a linker script that places it after the .reloc section (which should be the last "real" section, check ld --verbose output for the default linker script). This fixes what seems to be a regression from r55835 (!).
11 lines
229 B
Text
11 lines
229 B
Text
/* Make sure the INIT section is at the end of the module so we can reclaim the space */
|
|
SECTIONS
|
|
{
|
|
INIT BLOCK(__section_alignment__) :
|
|
{
|
|
__init_start__ = . ;
|
|
*(INIT)
|
|
__init_end__ = . ;
|
|
}
|
|
}
|
|
INSERT AFTER .reloc;
|