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/arch/sparc Don't skip PLT processing for t...



details:   https://anonhg.NetBSD.org/src/rev/f38ac72cbf27
branches:  trunk
changeset: 831362:f38ac72cbf27
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Mar 25 18:56:01 2018 +0000

description:
Don't skip PLT processing for the main binary. It can still contain
ifunc references.

diffstat:

 libexec/ld.elf_so/arch/sparc/mdreloc.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r ee2da3937637 -r f38ac72cbf27 libexec/ld.elf_so/arch/sparc/mdreloc.c
--- a/libexec/ld.elf_so/arch/sparc/mdreloc.c    Sun Mar 25 09:34:02 2018 +0000
+++ b/libexec/ld.elf_so/arch/sparc/mdreloc.c    Sun Mar 25 18:56:01 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdreloc.c,v 1.52 2017/08/12 09:03:27 joerg Exp $       */
+/*     $NetBSD: mdreloc.c,v 1.53 2018/03/25 18:56:01 joerg Exp $       */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.52 2017/08/12 09:03:27 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.53 2018/03/25 18:56:01 joerg Exp $");
 #endif /* not lint */
 
 #include <errno.h>
@@ -396,9 +396,6 @@
 {
        const Elf_Rela *rela;
 
-       if (!obj->relocbase)
-               return 0;
-
        for (rela = obj->pltrelalim; rela-- > obj->pltrela; ) {
                if (ELF_R_TYPE(rela->r_info) == R_TYPE(JMP_IREL))
                        obj->ifunc_remaining = obj->pltrelalim - rela + 1;



Home | Main Index | Thread Index | Old Index