diff options
author | guenther <guenther@openbsd.org> | 2017-01-30 05:00:31 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2017-01-30 05:00:31 +0000 |
commit | a647091d1c0838d0e5fba5b97f2f07d9d3bdd9b0 (patch) | |
tree | 25e0ae514a3ef997e9a65be5470ce9b45926d603 /sys/sys/exec_elf.h | |
parent | partially unbreak: was not specifying hostname on some $SSH invocations (diff) | |
download | wireguard-openbsd-a647091d1c0838d0e5fba5b97f2f07d9d3bdd9b0.tar.xz wireguard-openbsd-a647091d1c0838d0e5fba5b97f2f07d9d3bdd9b0.zip |
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 'sys/sys/exec_elf.h')
-rw-r--r-- | sys/sys/exec_elf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index f075a9c871d..21aefc9e25d 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.66 2017/01/21 05:42:03 guenther Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.67 2017/01/30 05:00:31 guenther Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -386,7 +386,7 @@ typedef struct { #undef ELF64_R_SYM #undef ELF64_R_TYPE #undef ELF64_R_INFO -#define ELF64_R_TYPE(info) (swap32((info) >> 32)) +#define ELF64_R_TYPE(info) ((__uint64_t)swap32((info) >> 32)) #define ELF64_R_SYM(info) ((info) & 0xFFFFFFFF) #define ELF64_R_INFO(s,t) (((__uint64_t)swap32(t) << 32) + (__uint32_t)(s)) #endif /* __mips64__ && __MIPSEL__ */ |