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:
phk 2003-01-06 07:37:15 +00:00
parent 3d36ec8575
commit a1b0e44458
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)