Module Name: src Committed By: christos Date: Fri Jan 19 23:17:41 UTC 2018
Modified Files: src/libexec/ld.elf_so/arch/mips: mips_reloc.c Log Message: don't forget to eat the high bits. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/libexec/ld.elf_so/arch/mips/mips_reloc.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/mips/mips_reloc.c diff -u src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.71 src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.72 --- src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.71 Mon Dec 25 00:29:27 2017 +++ src/libexec/ld.elf_so/arch/mips/mips_reloc.c Fri Jan 19 18:17:41 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: mips_reloc.c,v 1.71 2017/12/25 05:29:27 maya Exp $ */ +/* $NetBSD: mips_reloc.c,v 1.72 2018/01/19 23:17:41 christos Exp $ */ /* * Copyright 1997 Michael L. Hitch <mhi...@montana.edu> @@ -30,7 +30,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: mips_reloc.c,v 1.71 2017/12/25 05:29:27 maya Exp $"); +__RCSID("$NetBSD: mips_reloc.c,v 1.72 2018/01/19 23:17:41 christos Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -319,7 +319,7 @@ _rtld_relocate_nonplt_objects(Obj_Entry where = obj->relocbase + rel->r_offset; - switch (ELF_R_TYPE(rel->r_info)) { + switch (ELF_R_TYPE(rel->r_info) & 0xff) { #if ELFSIZE == 64 case R_TYPE(TLS_DTPMOD64): case R_TYPE(TLS_DTPREL64): @@ -342,7 +342,7 @@ _rtld_relocate_nonplt_objects(Obj_Entry break; } - switch (ELF_R_TYPE(rel->r_info)) { + switch (ELF_R_TYPE(rel->r_info) & 0xff) { case R_TYPE(NONE): break;