This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glibc MIPS patch to check for binutils version...


Please find attached a patch to GLIBC that is compatible with
the new version of binutils (HJLu's and CVS at least). I have
also added some cruft in '' that will produce
warning messages if a user attempt to use old binutils. Comments
are welcome. I have gone out on a limb and also included a
Changelog entry in case this patch actually gets accepted :).
This patch will apply against the CVS version of GLIBC. Please
regenerate 'configure'. Thanks.


***** Changelog entry *****
        * sysdeps/mips/ removed unneeded binary
        output format directive
        * added in checking for obsolete binutils
        for MIPS targets which produces a warning message if
        user attempts to use older tools.

******* START PATCH *******
diff -urN glibc-2.2.3/ glibc-2.2.3-patched/
--- glibc-2.2.3/    Wed Apr 25 16:50:58 2001
+++ glibc-2.2.3-patched/    Thu May 10 23:09:24 2001
@@ -590,6 +590,29 @@
+# For MIPS targets, we need to check that the proper version of
+# binutils is being used and warn that old binary compatability
+# may be broken.  --sjhill
+case "$host_alias" in
+  echo $ac_n "checking versions of GNU assembler and linker... $ac_c" 1>&6
+  ac_prog_version=`$AS -o conftest -v </dev/null 2>&1 | sed -n 's/^.*version \(
+  case $ac_prog_version in
+    '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+       ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
+    *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+  esac
+  echo "$ac_t""$ac_prog_version" 1>&6
+  if test $ac_verc_fail = yes; then
+    echo "configure: warning:
+*** These are older versions of the GNU linker and assembler
+*** for MIPS targets. You should seriously consider upgrading
+*** your tools or risk producing incompatible binaries." 1>&2
+  fi

 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
diff -urN glibc-2.2.3/sysdeps/mips/ glibc-2.2.3-patched/sysdeps/
--- glibc-2.2.3/sysdeps/mips/   Sat Jul 12 18:23:14 1997
+++ glibc-2.2.3-patched/sysdeps/mips/   Fri May 11 06:34:52 2001
@@ -1,4 +1,3 @@
******* END PATCH *******

 Steven J. Hill - Embedded SW Engineer
 Public Key: ''
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]