diff options
author | phk <phk@FreeBSD.org> | 2003-01-06 07:37:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-06 07:37:15 +0000 |
commit | a1b0e44458dd92011644d1ef5627aa3d99b04fb3 (patch) | |
tree | 206059d9e0d8b772da1f4fbcba0b00b66fc59637 | |
parent | 3d36ec857523017455dbb7751d9883439bdf9e26 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/conf/ldscript.amd64 | 4 | ||||
-rw-r--r-- | sys/conf/ldscript.i386 | 4 |
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) |