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:
parent
3d36ec8575
commit
a1b0e44458
@ -65,10 +65,14 @@ SECTIONS
|
||||
CONSTRUCTORS
|
||||
}
|
||||
.data1 : { *(.data1) }
|
||||
_start_ctors = .;
|
||||
PROVIDE (start_ctors = .);
|
||||
.ctors :
|
||||
{
|
||||
*(.ctors)
|
||||
}
|
||||
_stop_ctors = .;
|
||||
PROVIDE (stop_ctors = .);
|
||||
.dtors :
|
||||
{
|
||||
*(.dtors)
|
||||
|
@ -65,10 +65,14 @@ SECTIONS
|
||||
CONSTRUCTORS
|
||||
}
|
||||
.data1 : { *(.data1) }
|
||||
_start_ctors = .;
|
||||
PROVIDE (start_ctors = .);
|
||||
.ctors :
|
||||
{
|
||||
*(.ctors)
|
||||
}
|
||||
_stop_ctors = .;
|
||||
PROVIDE (stop_ctors = .);
|
||||
.dtors :
|
||||
{
|
||||
*(.dtors)
|
||||
|
Loading…
Reference in New Issue
Block a user