From 907cb02fe9d0edaf93a966afb2963d81c9e7eab0 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sat, 29 May 2004 01:09:00 +0000 Subject: [PATCH] Provide the _start_ctors and _stop_ctors symbols. As on i386, the addresses of these are the start and end of the .ctors section. --- sys/conf/ldscript.amd64 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64 index 318e5e64ad0f..68ab1a2c7e4e 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))