summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gold/layout.cc')
-rw-r--r--binutils-2.25/gold/layout.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/binutils-2.25/gold/layout.cc b/binutils-2.25/gold/layout.cc
index 8b3a619a..18063a04 100644
--- a/binutils-2.25/gold/layout.cc
+++ b/binutils-2.25/gold/layout.cc
@@ -25,6 +25,9 @@
#include <cerrno>
#include <cstring>
#include <algorithm>
+// __STDC_FORMAT_MACROS is needed to turn on macros in inttypes.h.
+#define __STDC_FORMAT_MACROS
+#include <inttypes.h>
#include <iostream>
#include <fstream>
#include <utility>
@@ -2815,9 +2818,11 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab,
data_seg_size = rw_memsz;
if (data_seg_size >= target->max_pie_data_segment_size())
- gold_warning(_("Unsafe PIE data segment size (%ld > %ld). See "
- "go/unsafe-pie."),
- data_seg_size, target->max_pie_data_segment_size());
+ gold_warning(
+ _("Unsafe PIE data segment size (%" PRIu64 " > %" PRIu64 "). See "
+ "go/unsafe-pie."),
+ data_seg_size,
+ target->max_pie_data_segment_size());
}
// If there is a load segment that contains the file and program headers,