mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- Put all init functions in a special section and do free
the memory from this section after system initialization. svn path=/trunk/; revision=6298
This commit is contained in:
@@ -14,6 +14,10 @@ SECTIONS
|
||||
*(.gcc_exc)
|
||||
*(.gcc_except_table)
|
||||
}
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(init)
|
||||
}
|
||||
/* 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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user