summaryrefslogtreecommitdiff
path: root/libexec/ld.so/mips64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-01-30 05:00:32 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-01-30 05:00:32 +0000
commitbb83e2c8b1fa60d9813cd6f422b7dbe0a60cefff (patch)
tree73d47dafd4af5756b99d038ab665aa77a0f7e304 /libexec/ld.so/mips64
parent7b221943462797c7fa784187fb84eb9d16f2d958 (diff)
Fix ELF64_R_TYPE(reloc->r_info) to have the same type on mips64le
as on other LP64 archs, __uint64_t, so that printf-like functions don't require extra casting...then eliminate the extra cast in ld.so/mips64/rtld_machine.c discussed with miod ok visa@
Diffstat (limited to 'libexec/ld.so/mips64')
-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 8d27d791efc..528b1f31876 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.26 2017/01/29 16:29:52 visa Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.27 2017/01/30 05:00:31 guenther 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 '%u'",
- (unsigned int)ELF64_R_TYPE(relocs->r_info));
+ _dl_die("unsupported relocation '%llu'",
+ ELF64_R_TYPE(relocs->r_info));
}
}
DL_DEB(("done %d fails\n", fails));