From bb83e2c8b1fa60d9813cd6f422b7dbe0a60cefff Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Mon, 30 Jan 2017 05:00:32 +0000 Subject: 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@ --- libexec/ld.so/mips64/rtld_machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/ld.so/mips64') 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)); -- cgit v1.2.3