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/mips Replace last use of r_type.



details:   https://anonhg.NetBSD.org/src/rev/7e3dbcf2081c
branches:  trunk
changeset: 354558:7e3dbcf2081c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jun 21 12:34:01 2017 +0000

description:
Replace last use of r_type.

diffstat:

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

diffs (27 lines):

diff -r 96a884385e61 -r 7e3dbcf2081c libexec/ld.elf_so/arch/mips/mips_reloc.c
--- a/libexec/ld.elf_so/arch/mips/mips_reloc.c  Wed Jun 21 09:05:31 2017 +0000
+++ b/libexec/ld.elf_so/arch/mips/mips_reloc.c  Wed Jun 21 12:34:01 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_reloc.c,v 1.67 2017/06/20 13:24:03 joerg Exp $    */
+/*     $NetBSD: mips_reloc.c,v 1.68 2017/06/21 12:34:01 joerg Exp $    */
 
 /*
  * Copyright 1997 Michael L. Hitch <mhitch%montana.edu@localhost>
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mips_reloc.c,v 1.67 2017/06/20 13:24:03 joerg Exp $");
+__RCSID("$NetBSD: mips_reloc.c,v 1.68 2017/06/21 12:34:01 joerg Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -350,7 +350,7 @@
                        /* 32-bit PC-relative reference */
                        const Elf_Sym *def2;
                        const size_t rlen =
-                           ELF_R_NXTTYPE_64_P(r_type)
+                           ELF_R_NXTTYPE_64_P(ELF_R_TYPE(rel->r_info))
                                ? sizeof(Elf_Sxword)
                                : sizeof(Elf_Sword);
                        Elf_Sxword old = load_ptr(where, rlen);



Home | Main Index | Thread Index | Old Index