From 564861ba7c78bd06e527c27022b1d2a0790c2f2c Mon Sep 17 00:00:00 2001 From: jdp Date: Wed, 14 Jul 1999 04:09:11 +0000 Subject: Change the symbol used to find the end of an object's address space from "end" to "_end". The former does not exist in most shared libraries. This fixes problems in dladdr() and dlsym(RTLD_NEXT, ...). --- libexec/rtld-elf/rtld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/rtld-elf') diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 8a69de1..313e8ef 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.26 1999/07/03 23:54:02 jdp Exp $ + * $Id: rtld.c,v 1.27 1999/07/09 16:22:55 jdp Exp $ */ /* @@ -60,7 +60,7 @@ #define msg(s) (write(1, s, strlen(s))) #define trace() msg("trace: " __XSTRING(__LINE__) "\n"); -#define END_SYM "end" +#define END_SYM "_end" /* Types. */ typedef void (*func_ptr_type)(); -- cgit v1.1