Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Fix addend manipulation
details: https://anonhg.NetBSD.org/src/rev/1f29868dee50
branches: trunk
changeset: 789151:1f29868dee50
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 09 06:00:09 2013 +0000
description:
Fix addend manipulation
diffstat:
sys/arch/arm/arm32/kobj_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6321d1c595ca -r 1f29868dee50 sys/arch/arm/arm32/kobj_machdep.c
--- a/sys/arch/arm/arm32/kobj_machdep.c Fri Aug 09 05:57:13 2013 +0000
+++ b/sys/arch/arm/arm32/kobj_machdep.c Fri Aug 09 06:00:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj_machdep.c,v 1.5 2013/08/08 06:49:09 matt Exp $ */
+/* $NetBSD: kobj_machdep.c,v 1.6 2013/08/09 06:00:09 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.5 2013/08/08 06:49:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.6 2013/08/09 06:00:09 matt Exp $");
#define ELFSIZE ARCH_ELFSIZE
@@ -148,7 +148,7 @@
if (addr == 0)
break;
- addend += ((uint32_t *)addr - (uint32_t *)where);
+ addend += (uintptr_t)addr - (uintptr_t)where;
if (addend & 3) {
printf ("Relocation %x unaligned @ %p\n", addend, where);
Home |
Main Index |
Thread Index |
Old Index