Subject: bin/3174: m68k ld bug about architecture check
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yasufu-i@is.aist-nara.ac.jp>
List: netbsd-bugs
Date: 02/02/1997 00:55:47
>Number: 3174
>Category: bin
>Synopsis: m68k ld bug about architecture check
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 1 08:05:02 1997
>Last-Modified:
>Originator: ITOH, Yasufumi
>Organization:
Nara Institute of Science and Technology, Nara, Japan.
>Release: 1.2
>Environment:
System: NetBSD acha.my.domain 1.2 NetBSD 1.2 (ACHA) #3: Mon Jan 20 19:09:45 JST 1997 brx@acha.my.domain:/usr/src/sys/arch/x68k/compile/ACHA x68k
>Description:
Even if the m68k ld find an object file of incompatible archtecture,
it doesn't treat this as an error, but does linking with other files.
>How-To-Repeat:
Feed an i386 (for example) object file to m68k ld.
>Fix:
Apply following patch to gnu/usr.bin/ld.
diff -uF^[a-zA-Z_][a-z A-Z0-9_]*(.*[^;]$ m68k/md.c.orig m68k/md.c
--- m68k/md.c.orig Tue Jan 17 15:44:39 1995
+++ m68k/md.c Tue Jan 7 00:15:57 1997
@@ -266,6 +266,8 @@ md_midcompat(hp)
return 1;
#if 0
return (((md_swap_long(hp->a_midmag)&0x00ff0000) >> 16) == MID_SUN020);
+#else
+ return 0;
#endif
}
#endif /* RTLD */
>Audit-Trail:
>Unformatted: