Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa Support PCREL32 (for EH sections)
details: https://anonhg.NetBSD.org/src/rev/4cccf0422d31
branches: trunk
changeset: 791410:4cccf0422d31
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Nov 16 17:18:42 2013 +0000
description:
Support PCREL32 (for EH sections)
diffstat:
sys/arch/hppa/hppa/kobj_machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 6da67cd40539 -r 4cccf0422d31 sys/arch/hppa/hppa/kobj_machdep.c
--- a/sys/arch/hppa/hppa/kobj_machdep.c Sat Nov 16 17:15:30 2013 +0000
+++ b/sys/arch/hppa/hppa/kobj_machdep.c Sat Nov 16 17:18:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj_machdep.c,v 1.12 2013/11/15 06:32:17 skrll Exp $ */
+/* $NetBSD: kobj_machdep.c,v 1.13 2013/11/16 17:18:42 skrll 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.12 2013/11/15 06:32:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.13 2013/11/16 17:18:42 skrll Exp $");
#define ELFSIZE ARCH_ELFSIZE
@@ -143,6 +143,7 @@
value = RR(addr, value);
break;
+ case R_TYPE(PCREL32):
case R_TYPE(PCREL17F):
/* symbol - PC - 8 + addend */
addr = kobj_sym_lookup(ko, symidx);
@@ -181,6 +182,7 @@
switch (rtype) {
case R_TYPE(DIR32):
+ case R_TYPE(PCREL32):
case R_TYPE(PLABEL32):
case R_TYPE(SEGREL32):
*where = value;
Home |
Main Index |
Thread Index |
Old Index