Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.aout_so/arch/m68k Allow reading SunOS/4.1.1 objec...
details: https://anonhg.NetBSD.org/src/rev/62c6e6d8b618
branches: trunk
changeset: 471811:62c6e6d8b618
user: gwr <gwr%NetBSD.org@localhost>
date: Mon Apr 12 00:52:44 1999 +0000
description:
Allow reading SunOS/4.1.1 object files. Fixes pr/7363
diffstat:
libexec/ld.aout_so/arch/m68k/md.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r c4b8c2f5ee09 -r 62c6e6d8b618 libexec/ld.aout_so/arch/m68k/md.c
--- a/libexec/ld.aout_so/arch/m68k/md.c Mon Apr 12 00:47:17 1999 +0000
+++ b/libexec/ld.aout_so/arch/m68k/md.c Mon Apr 12 00:52:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.15 1999/01/05 10:02:21 itohy Exp $ */
+/* $NetBSD: md.c,v 1.16 1999/04/12 00:52:44 gwr Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -278,11 +278,13 @@
mid == MID_HPUX ||
mid == MID_HPUX800)
return 1;
-#if 0
- return (((md_swap_long(hp->a_midmag)&0x00ff0000) >> 16) == MID_SUN020);
-#else
+
+#ifdef MID_SUN020
+ mid = (md_swap_long(hp->a_midmag) & 0x00ff0000) >> 16;
+ if (mid == MID_SUN020)
+ return 1;
+#endif
return 0;
-#endif
}
#endif /* RTLD */
Home |
Main Index |
Thread Index |
Old Index