summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/x86_64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gold/x86_64.cc')
-rw-r--r--binutils-2.25/gold/x86_64.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/binutils-2.25/gold/x86_64.cc b/binutils-2.25/gold/x86_64.cc
index 4543c8a8..02090df0 100644
--- a/binutils-2.25/gold/x86_64.cc
+++ b/binutils-2.25/gold/x86_64.cc
@@ -1,6 +1,6 @@
// x86_64.cc -- x86_64 target support for gold.
-// Copyright (C) 2006-2015 Free Software Foundation, Inc.
+// Copyright (C) 2006-2014 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -427,6 +427,12 @@ class Target_x86_64 : public Sized_target<size, false>
tls_base_symbol_defined_(false)
{ }
+ // The safe value for data segment size for PIE links. Anything more
+ // than this is prone to go/unsafe-pie.
+ uint64_t
+ max_pie_data_segment_size() const
+ { return (128 * 1024 * 1024); }
+
// Hook for a new output section.
void
do_new_output_section(Output_section*) const;