Add support for reading Aarch64 core dumps.
[binutils-gdb.git] / gold / reduced_debug_output.h
index bd8da2237c2f74f197000bac1619cfaaca1817d9..a4f9ebbdf17df33da294fc96256a89c508c13df1 100644 (file)
@@ -1,6 +1,6 @@
 // reduced_debug_output.h -- reduce debugging information  -*- C++ -*-
 
-// Copyright 2008 Free Software Foundation, Inc.
+// Copyright (C) 2008-2014 Free Software Foundation, Inc.
 // Written by Caleb Howe <cshowe@google.com>.
 
 // This file is part of gold.
@@ -64,7 +64,7 @@ class Output_reduced_debug_abbrev_section : public Output_section
   void
   failed(std::string reason)
   {
-    gold_warning(reason.c_str());
+    gold_warning("%s", reason.c_str());
     failed_ = true;
   }
 
@@ -110,7 +110,7 @@ class Output_reduced_debug_info_section : public Output_section
   void
   failed(std::string reason)
   {
-    gold_warning(reason.c_str());
+    gold_warning("%s", reason.c_str());
     this->failed_ = true;
   }