aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-01-26 23:11:48 +0000
committerAlan Modra <amodra@gmail.com>2000-01-26 23:11:48 +0000
commit305c72062b487da283913b9f4b3016b0546c64a3 (patch)
treea298d4281e21b134459e5f9d5ce964bb95469bc7 /ld
parent4c63da97a708e211a7141e29082ab589cbdbcb12 (diff)
downloadfsf-binutils-gdb-305c72062b487da283913b9f4b3016b0546c64a3.zip
fsf-binutils-gdb-305c72062b487da283913b9f4b3016b0546c64a3.tar.gz
fsf-binutils-gdb-305c72062b487da283913b9f4b3016b0546c64a3.tar.bz2
Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog9
-rw-r--r--ld/ldcref.c4
-rw-r--r--ld/ldmisc.c4
3 files changed, 13 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 45b8f9f..5adfeb4 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,12 @@
+2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * ldcref.c (output_cref): Don't pass message strings to printf
+ as format arg.
+ Update copyright.
+
+ * ldmisc.c (vfinfo): Same here.
+ Update copyright.
+
2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
* emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
diff --git a/ld/ldcref.c b/ld/ldcref.c
index c75b8e6..e208106 100644
--- a/ld/ldcref.c
+++ b/ld/ldcref.c
@@ -1,5 +1,5 @@
/* ldcref.c -- output a cross reference table
- Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 97, 98, 99, 2000 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>
This file is part of GLD, the Gnu Linker.
@@ -238,7 +238,7 @@ output_cref (fp)
fprintf (fp, _("\nCross Reference Table\n\n"));
msg = _("Symbol");
- fprintf (fp, msg);
+ fprintf (fp, "%s", msg);
len = strlen (msg);
while (len < FILECOL)
{
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 267dff1..e343944 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -1,5 +1,5 @@
/* ldmisc.c
- Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 1999
+ Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support.
@@ -213,7 +213,7 @@ vfinfo (fp, fmt, arg)
case 'E':
/* current bfd error or errno */
- fprintf (fp, bfd_errmsg (bfd_get_error ()));
+ fprintf (fp, "%s", bfd_errmsg (bfd_get_error ()));
break;
case 'I':