aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-12-01 19:50:49 +0000
committerCary Coutant <ccoutant@google.com>2008-12-01 19:50:49 +0000
commit6c52134ce6214f308feadde45e43ff7e9ab5dbdc (patch)
tree72a76450a945e2c6e5b729b4e11ad3a2b32e9269 /gold
parenta6bfd026d0e011e4ea43aacad46a208ccefd2265 (diff)
downloadgdb-6c52134ce6214f308feadde45e43ff7e9ab5dbdc.zip
gdb-6c52134ce6214f308feadde45e43ff7e9ab5dbdc.tar.gz
gdb-6c52134ce6214f308feadde45e43ff7e9ab5dbdc.tar.bz2
gold/ChangeLog:
* plugin.cc (ld_plugin_message): Change format parameter to const. Fix mismatch between new[] and delete. include/ChangeLog: * plugin-api.h (ld_plugin_message): Change format parameter to const.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/plugin.cc6
2 files changed, 8 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index a83aeb3..da757f0 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-01 Cary Coutant <ccoutant@google.com>
+
+ * plugin.cc (ld_plugin_message): Change format parameter to const.
+ Fix mismatch between new[] and delete.
+
2008-11-14 Cary Coutant <ccoutant@google.com>
* reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
diff --git a/gold/plugin.cc b/gold/plugin.cc
index a5f7a06..1b0eb01 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -68,7 +68,7 @@ static enum ld_plugin_status
add_input_file(char *pathname);
static enum ld_plugin_status
-message(int level, char *format, ...);
+message(int level, const char *format, ...);
};
@@ -194,7 +194,7 @@ Plugin::load()
// Call the onload entry point.
(*onload)(tv);
- delete tv;
+ delete[] tv;
#endif // ENABLE_PLUGINS
}
@@ -892,7 +892,7 @@ add_input_file(char *pathname)
// Issue a diagnostic message from a plugin.
static enum ld_plugin_status
-message(int level, char * format, ...)
+message(int level, const char * format, ...)
{
va_list args;
va_start(args, format);