aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-02-12 19:19:33 +0000
committerIan Lance Taylor <ian@airs.com>1998-02-12 19:19:33 +0000
commiteaa147a64069eee56a5d0896a770e8edf161815c (patch)
treed762137a4869f77b7e932958370b765d39d8ac81
parentb95ad8c8e7fe7756ab3f9ca57cd2026134b3acf8 (diff)
downloadgdb-eaa147a64069eee56a5d0896a770e8edf161815c.zip
gdb-eaa147a64069eee56a5d0896a770e8edf161815c.tar.gz
gdb-eaa147a64069eee56a5d0896a770e8edf161815c.tar.bz2
* addr2line.c (usage): Update bug-gnu-utils address.
* ar.c (usage): Likewise. * nlmconv.c (show_usage): Likewise. * nm.c (usage): Likewise. * objcopy.c (copy_usage): Likewise. (strip_usage): Likewise. * objdump.c (usage): Likewise. * size.c (usage): Likewise. * strings.c (usage): Likewise. * windres.c (usage): Likewise. * binutils.texi (Bug Reporting): Likewise.
-rw-r--r--binutils/ChangeLog18
-rw-r--r--binutils/binutils.texi8
-rw-r--r--binutils/objcopy.c36
3 files changed, 53 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9e54e76..d8b7c0b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,21 @@
+Thu Feb 12 14:13:46 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * addr2line.c (usage): Update bug-gnu-utils address.
+ * ar.c (usage): Likewise.
+ * nlmconv.c (show_usage): Likewise.
+ * nm.c (usage): Likewise.
+ * objcopy.c (copy_usage): Likewise.
+ (strip_usage): Likewise.
+ * objdump.c (usage): Likewise.
+ * size.c (usage): Likewise.
+ * strings.c (usage): Likewise.
+ * windres.c (usage): Likewise.
+ * binutils.texi (Bug Reporting): Likewise.
+
+Sat Feb 7 15:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * configure, aclocal.m4: Rebuild with new libtool.
+
Thu Feb 5 12:21:13 1998 Ian Lance Taylor <ian@cygnus.com>
* configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index cc6b506..95291fd 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -13,7 +13,7 @@ END-INFO-DIR-ENTRY
@end ifinfo
@ifinfo
-Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -41,7 +41,7 @@ into another language, under the above conditions for modified versions.
@c This file documents the GNU binary utilities "ar", "ld", "objcopy",
@c "objdump", "nm", "size", "strings", "strip", and "ranlib".
@c
-@c Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+@c Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
@c
@c This text may be freely distributed under the terms of the GNU
@c General Public License.
@@ -66,7 +66,7 @@ into another language, under the above conditions for modified versions.
@end tex
@vskip 0pt plus 1filll
-Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -2308,7 +2308,7 @@ individuals in the file @file{etc/SERVICE} in the @sc{gnu} Emacs
distribution.
In any event, we also recommend that you send bug reports for the binary
-utilities to @samp{bug-gnu-utils@@prep.ai.mit.edu}.
+utilities to @samp{bug-gnu-utils@@gnu.org}.
The fundamental principle of reporting bugs usefully is this:
@strong{report all the facts}. If you are not sure whether to state a
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 7e05c1b..a7e8041 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1,5 +1,6 @@
/* objcopy.c -- copy object file from input to output, optionally massaging it.
- Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 1998
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -15,7 +16,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
#include "bfd.h"
#include "progress.h"
@@ -307,7 +309,7 @@ Usage: %s [-vVSpgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-b byte]\n\
[--verbose] [--version] [--help] in-file [out-file]\n");
list_supported_targets (program_name, stream);
if (exit_status == 0)
- fprintf (stream, "Report bugs to bug-gnu-utils@prep.ai.mit.edu\n");
+ fprintf (stream, "Report bugs to bug-gnu-utils@gnu.org\n");
exit (exit_status);
}
@@ -326,7 +328,7 @@ Usage: %s [-vVsSpgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-R section]\n\
program_name);
list_supported_targets (program_name, stream);
if (exit_status == 0)
- fprintf (stream, "Report bugs to bug-gnu-utils@prep.ai.mit.edu\n");
+ fprintf (stream, "Report bugs to bug-gnu-utils@gnu.org\n");
exit (exit_status);
}
@@ -936,7 +938,11 @@ copy_archive (ibfd, obfd, output_target)
char *dir = make_tempname (bfd_get_filename (obfd));
/* Make a temp directory to hold the contents. */
+#if defined (_WIN32) && !defined (__CYGWIN32__)
+ if (mkdir (dir) != 0)
+#else
if (mkdir (dir, 0700) != 0)
+#endif
{
fatal ("cannot mkdir %s for archive copying (error: %s)",
dir, strerror (errno));
@@ -1289,7 +1295,7 @@ copy_section (ibfd, isection, obfdarg)
}
free (memhunk);
}
- else if (p->set_flags && (p->flags & SEC_HAS_CONTENTS) != 0)
+ else if (p != NULL && p->set_flags && (p->flags & SEC_HAS_CONTENTS) != 0)
{
PTR memhunk = (PTR) xmalloc ((unsigned) size);
@@ -1554,6 +1560,24 @@ smart_rename (from, to)
if (lstat (to, &s))
return -1;
+#if defined (_WIN32) && !defined (__CYGWIN32__)
+ /* Win32, unlike unix, will not erase `to' in `rename(from, to)' but
+ fail instead. Also, chown is not present. */
+
+ if (stat (to, &s) == 0)
+ remove (to);
+
+ ret = rename (from, to);
+ if (ret != 0)
+ {
+ /* We have to clean up here. */
+ int saved = errno;
+ fprintf (stderr, "%s: %s: ", program_name, to);
+ errno = saved;
+ perror ("rename");
+ unlink (from);
+ }
+#else
/* Use rename only if TO is not a symbolic link and has
only one hard link. */
if (!S_ISLNK (s.st_mode) && s.st_nlink == 1)
@@ -1598,6 +1622,8 @@ smart_rename (from, to)
}
unlink (from);
}
+#endif /* _WIN32 && !__CYGWIN32__ */
+
return ret;
}