Module Name: src
Committed By: joerg
Date: Sun Mar 25 18:56:01 UTC 2018
Modified Files:
src/libexec/ld.elf_so/arch/sparc: mdreloc.c
Log Message:
Don't skip PLT processing for the main binary. It can still contain
ifunc references.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/libexec/ld.elf_so/arch/sparc/mdreloc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/arch/sparc/mdreloc.c
diff -u src/libexec/ld.elf_so/arch/sparc/mdreloc.c:1.52 src/libexec/ld.elf_so/arch/sparc/mdreloc.c:1.53
--- src/libexec/ld.elf_so/arch/sparc/mdreloc.c:1.52 Sat Aug 12 09:03:27 2017
+++ src/libexec/ld.elf_so/arch/sparc/mdreloc.c Sun Mar 25 18:56:01 2018
@@ -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 @@ _rtld_relocate_plt_lazy(Obj_Entry *obj)
{
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;