summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/gold.cc
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gold/gold.cc')
-rw-r--r--binutils-2.25/gold/gold.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/binutils-2.25/gold/gold.cc b/binutils-2.25/gold/gold.cc
index eccbc589..b278b3c3 100644
--- a/binutils-2.25/gold/gold.cc
+++ b/binutils-2.25/gold/gold.cc
@@ -25,6 +25,9 @@
#include <cstdlib>
#include <cstdio>
#include <cstring>
+// __STDC_FORMAT_MACROS is needed to turn on macros in inttypes.h.
+#define __STDC_FORMAT_MACROS
+#include <inttypes.h>
#include <unistd.h>
#include <algorithm>
#include "libiberty.h"
@@ -597,9 +600,11 @@ queue_middle_tasks(const General_options& options,
// perfectly and warn. So, this is fine.
if (segment_size >= target->max_pie_data_segment_size())
{
- gold_info(_("The data segment size (%ld > %ld) is likely unsafe and"
- " PIE has been disabled for this link. See go/unsafe-pie."),
- segment_size, target->max_pie_data_segment_size());
+ gold_info(
+ _("The data segment size (%" PRIu64 " > %" PRIu64 ") is likely unsafe and"
+ " PIE has been disabled for this link. See go/unsafe-pie."),
+ segment_size,
+ target->max_pie_data_segment_size());
const_cast<General_options*>(&parameters->options())->set_pie_value(false);
}
}