- 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:
Hartmut Birr
2003-10-12 17:37:08 +00:00
parent 2a1821394f
commit 59f99bc8c6
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -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
+7 -1
View File
@@ -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