summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-06 07:37:15 +0000
committerphk <phk@FreeBSD.org>2003-01-06 07:37:15 +0000
commita1b0e44458dd92011644d1ef5627aa3d99b04fb3 (patch)
tree206059d9e0d8b772da1f4fbcba0b00b66fc59637 /sys/conf
parent3d36ec857523017455dbb7751d9883439bdf9e26 (diff)
downloadFreeBSD-src-a1b0e44458dd92011644d1ef5627aa3d99b04fb3.zip
FreeBSD-src-a1b0e44458dd92011644d1ef5627aa3d99b04fb3.tar.gz
Add two symbols start_ctors and stop_ctors to allow us to find the
.ctors section so we can call the constructors.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/ldscript.amd644
-rw-r--r--sys/conf/ldscript.i3864
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64
index 515ffba..181e366 100644
--- a/sys/conf/ldscript.amd64
+++ b/sys/conf/ldscript.amd64
@@ -65,10 +65,14 @@ SECTIONS
CONSTRUCTORS
}
.data1 : { *(.data1) }
+ _start_ctors = .;
+ PROVIDE (start_ctors = .);
.ctors :
{
*(.ctors)
}
+ _stop_ctors = .;
+ PROVIDE (stop_ctors = .);
.dtors :
{
*(.dtors)
diff --git a/sys/conf/ldscript.i386 b/sys/conf/ldscript.i386
index 515ffba..181e366 100644
--- a/sys/conf/ldscript.i386
+++ b/sys/conf/ldscript.i386
@@ -65,10 +65,14 @@ SECTIONS
CONSTRUCTORS
}
.data1 : { *(.data1) }
+ _start_ctors = .;
+ PROVIDE (start_ctors = .);
.ctors :
{
*(.ctors)
}
+ _stop_ctors = .;
+ PROVIDE (stop_ctors = .);
.dtors :
{
*(.dtors)
OpenPOWER on IntegriCloud