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 Don't resolve symbols to PLT entries on th...



details:   https://anonhg.NetBSD.org/src/rev/12f9bda9e8ed
branches:  trunk
changeset: 794660:12f9bda9e8ed
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 21 01:40:41 2014 +0000

description:
Don't resolve symbols to PLT entries on the VAX.  It just causes a lot of
overhead.

diffstat:

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

diffs (27 lines):

diff -r 959ad145895c -r 12f9bda9e8ed libexec/ld.elf_so/symbol.c
--- a/libexec/ld.elf_so/symbol.c        Fri Mar 21 01:17:40 2014 +0000
+++ b/libexec/ld.elf_so/symbol.c        Fri Mar 21 01:40:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: symbol.c,v 1.63 2013/05/03 10:27:05 skrll Exp $         */
+/*     $NetBSD: symbol.c,v 1.64 2014/03/21 01:40:41 matt Exp $  */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: symbol.c,v 1.63 2013/05/03 10:27:05 skrll Exp $");
+__RCSID("$NetBSD: symbol.c,v 1.64 2014/03/21 01:40:41 matt Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -260,7 +260,7 @@
                rdbg(("check \"%s\" vs \"%s\" in %s", name, strp, obj->path));
                if (name[1] != strp[1] || strcmp(name, strp))
                        continue;
-#ifdef __mips__
+#if defined(__mips__) || defined(__vax__)
                if (symp->st_shndx == SHN_UNDEF)
                        continue;
 #else



Home | Main Index | Thread Index | Old Index