Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so Make this work for ldd again.



details:   https://anonhg.NetBSD.org/src/rev/c4c09bf883b4
branches:  trunk
changeset: 537717:c4c09bf883b4
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Oct 05 00:13:27 2002 +0000

description:
Make this work for ldd again.

diffstat:

 libexec/ld.elf_so/map_object.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 6944a0f9889d -r c4c09bf883b4 libexec/ld.elf_so/map_object.c
--- a/libexec/ld.elf_so/map_object.c    Fri Oct 04 23:49:35 2002 +0000
+++ b/libexec/ld.elf_so/map_object.c    Sat Oct 05 00:13:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: map_object.c,v 1.22 2002/10/04 18:50:43 mycroft Exp $   */
+/*     $NetBSD: map_object.c,v 1.23 2002/10/05 00:13:27 mycroft Exp $   */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -190,7 +190,9 @@
        data_vaddr = round_down(segs[1]->p_vaddr);
        data_vlimit = round_up(segs[1]->p_vaddr + segs[1]->p_filesz);
        data_flags = protflags(segs[1]->p_flags);
+#ifdef RTLD_LOADER
        clear_vaddr = segs[1]->p_vaddr + segs[1]->p_filesz;
+#endif
 
        obj->textsize = text_vlimit - base_vaddr;
        obj->vaddrbase = base_vaddr;



Home | Main Index | Thread Index | Old Index