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
b211af11e2
commit
3fc473df24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108777
@ -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