summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-01-29 16:29:53 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-01-29 16:29:53 +0000
commit49c1bc08d5bc3ed6c4f9eda3711531f078b16ee9 (patch)
tree4b839faeca623168a98d81e5c9a9318250a48dfe
parent55de8576d7d78ce5761627e82947fa7ca06625a9 (diff)
Previous commit broke build on loongson. Refix by adding
an explicit type cast. Reported and tested by matthieu@
-rw-r--r--libexec/ld.so/mips64/rtld_machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/mips64/rtld_machine.c b/libexec/ld.so/mips64/rtld_machine.c
index f3e5a638e29..8d27d791efc 100644
--- a/libexec/ld.so/mips64/rtld_machine.c
+++ b/libexec/ld.so/mips64/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.25 2017/01/25 15:22:57 visa Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.26 2017/01/29 16:29:52 visa Exp $ */
/*
* Copyright (c) 1998-2004 Opsycon AB, Sweden.
@@ -141,8 +141,8 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz)
break;
default:
- _dl_die("unsupported relocation '%lld'",
- ELF64_R_TYPE(relocs->r_info));
+ _dl_die("unsupported relocation '%u'",
+ (unsigned int)ELF64_R_TYPE(relocs->r_info));
}
}
DL_DEB(("done %d fails\n", fails));