summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-01-19 23:17:41 +0000
committerchristos <christos@NetBSD.org>2018-01-19 23:17:41 +0000
commit7c765996ff297d7f4c16d955053635ec379727d0 (patch)
tree31819ac27c491d278f482d02afc7bd46ff3d5cbe /libexec
parentfd44ad84e18def31e0414a7e30ecda36cb8ce3f1 (diff)
don't forget to eat the high bits.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/arch/mips/mips_reloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.elf_so/arch/mips/mips_reloc.c b/libexec/ld.elf_so/arch/mips/mips_reloc.c
index 52f0220985f..8fe38f80bf8 100644
--- a/libexec/ld.elf_so/arch/mips/mips_reloc.c
+++ b/libexec/ld.elf_so/arch/mips/mips_reloc.c
@@ -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 <mhitch@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 *obj)
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 *obj)
break;
}
- switch (ELF_R_TYPE(rel->r_info)) {
+ switch (ELF_R_TYPE(rel->r_info) & 0xff) {
case R_TYPE(NONE):
break;