summaryrefslogtreecommitdiffstats
path: root/sys/conf/ldscript.amd64
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-05-29 01:09:00 +0000
committertjr <tjr@FreeBSD.org>2004-05-29 01:09:00 +0000
commitddbca80ea4b7c2708c105436a363ce9098d0e7d3 (patch)
treea91e058c4d492d6ace1319117fc9b4095b1902fe /sys/conf/ldscript.amd64
parentc85e63d425834e8115ce20fabc98cfe9af17974c (diff)
downloadFreeBSD-src-ddbca80ea4b7c2708c105436a363ce9098d0e7d3.zip
FreeBSD-src-ddbca80ea4b7c2708c105436a363ce9098d0e7d3.tar.gz
Provide the _start_ctors and _stop_ctors symbols. As on i386, the addresses
of these are the start and end of the .ctors section.
Diffstat (limited to 'sys/conf/ldscript.amd64')
-rw-r--r--sys/conf/ldscript.amd644
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64
index 318e5e6..68ab1a2 100644
--- a/sys/conf/ldscript.amd64
+++ b/sys/conf/ldscript.amd64
@@ -87,6 +87,8 @@ SECTIONS
.eh_frame : { KEEP (*(.eh_frame)) }
.gcc_except_table : { *(.gcc_except_table) }
.dynamic : { *(.dynamic) }
+ _start_ctors = .;
+ PROVIDE (start_ctors = .);
.ctors :
{
/* gcc uses crtbegin.o to find the start of
@@ -107,6 +109,8 @@ SECTIONS
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
+ _stop_ctors = .;
+ PROVIDE (stop_ctors = .);
.dtors :
{
KEEP (*crtbegin.o(.dtors))
OpenPOWER on IntegriCloud