Add two symbols start_ctors and stop_ctors to allow us to find the

.ctors section so we can call the constructors.
This commit is contained in:
Poul-Henning Kamp 2003-01-06 07:37:15 +00:00
parent b211af11e2
commit 3fc473df24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108777
2 changed files with 8 additions and 0 deletions

View File

@ -65,10 +65,14 @@ SECTIONS
CONSTRUCTORS
}
.data1 : { *(.data1) }
_start_ctors = .;
PROVIDE (start_ctors = .);
.ctors :
{
*(.ctors)
}
_stop_ctors = .;
PROVIDE (stop_ctors = .);
.dtors :
{
*(.dtors)

View File

@ -65,10 +65,14 @@ SECTIONS
CONSTRUCTORS
}
.data1 : { *(.data1) }
_start_ctors = .;
PROVIDE (start_ctors = .);
.ctors :
{
*(.ctors)
}
_stop_ctors = .;
PROVIDE (stop_ctors = .);
.dtors :
{
*(.dtors)