Provide the _start_ctors and _stop_ctors symbols. As on i386, the addresses
of these are the start and end of the .ctors section.
This commit is contained in:
parent
f8aae7776f
commit
907cb02fe9
@ -87,6 +87,8 @@ SECTIONS
|
|||||||
.eh_frame : { KEEP (*(.eh_frame)) }
|
.eh_frame : { KEEP (*(.eh_frame)) }
|
||||||
.gcc_except_table : { *(.gcc_except_table) }
|
.gcc_except_table : { *(.gcc_except_table) }
|
||||||
.dynamic : { *(.dynamic) }
|
.dynamic : { *(.dynamic) }
|
||||||
|
_start_ctors = .;
|
||||||
|
PROVIDE (start_ctors = .);
|
||||||
.ctors :
|
.ctors :
|
||||||
{
|
{
|
||||||
/* gcc uses crtbegin.o to find the start of
|
/* gcc uses crtbegin.o to find the start of
|
||||||
@ -107,6 +109,8 @@ SECTIONS
|
|||||||
KEEP (*(SORT(.ctors.*)))
|
KEEP (*(SORT(.ctors.*)))
|
||||||
KEEP (*(.ctors))
|
KEEP (*(.ctors))
|
||||||
}
|
}
|
||||||
|
_stop_ctors = .;
|
||||||
|
PROVIDE (stop_ctors = .);
|
||||||
.dtors :
|
.dtors :
|
||||||
{
|
{
|
||||||
KEEP (*crtbegin.o(.dtors))
|
KEEP (*crtbegin.o(.dtors))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user