[AArch64] Adjust layout emultempl/aarch64elf.em.
[deliverable/binutils-gdb.git] / gold / options.h
index c00e69ad32d0ace84b955557bc84743f47211c14..956a7f49356d9e5f5bc48fea911ca2050321fbc4 100644 (file)
@@ -1,7 +1,6 @@
 // options.h -- handle command line options for gold  -*- C++ -*-
 
-// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013
-// Free Software Foundation, Inc.
+// Copyright (C) 2006-2015 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -927,6 +926,10 @@ class General_options
              N_("Put read-only non-executable sections in their own segment"),
              NULL);
 
+  DEFINE_uint64(rosegment_gap, options::TWO_DASHES, '\0', -1U,
+               N_("Set offset between executable and read-only segments"),
+               N_("OFFSET"));
+
   DEFINE_string(m, options::EXACTLY_ONE_DASH, 'm', "",
                N_("Set GNU linker emulation; obsolete"), N_("EMULATION"));
 
@@ -969,9 +972,11 @@ class General_options
              N_("(ARM only) Ignore for backward compatibility"), NULL);
 
   DEFINE_bool(pie, options::ONE_DASH, '\0', false,
-             N_("Create a position independent executable"), NULL);
+             N_("Create a position independent executable"),
+             N_("Do not create a position independent executable"));
   DEFINE_bool_alias(pic_executable, pie, options::TWO_DASHES, '\0',
-                   N_("Create a position independent executable"), NULL,
+                   N_("Create a position independent executable"),
+                   N_("Do not create a position independent executable"),
                    false);
 
   DEFINE_bool(pipeline_knowledge, options::ONE_DASH, '\0', false,
@@ -1052,6 +1057,12 @@ class General_options
                         N_("Sort common symbols by alignment"),
                         N_("[={ascending,descending}]"));
 
+  DEFINE_enum(sort_section, options::TWO_DASHES, '\0', "none",
+             N_("Sort sections by name.  \'--no-text-reorder\'"
+                " will override \'--sort-section=name\' for .text"),
+             N_("[none,name]"),
+             {"none", "name"});
+
   DEFINE_uint(spare_dynamic_tags, options::TWO_DASHES, '\0', 5,
              N_("Dynamic tag slots to reserve (default 5)"),
              N_("COUNT"));
@@ -1152,6 +1163,8 @@ class General_options
   DEFINE_uint64_alias(Ttext_segment, Ttext, options::ONE_DASH, '\0',
                      N_("Set the address of the text segment"),
                      N_("ADDRESS"));
+  DEFINE_uint64(Trodata_segment, options::ONE_DASH, '\0', -1U,
+               N_("Set the address of the rodata segment"), N_("ADDRESS"));
 
   DEFINE_bool(toc_optimize, options::TWO_DASHES, '\0', true,
              N_("(PowerPC64 only) Optimize TOC code sequences"),
@@ -1259,6 +1272,9 @@ class General_options
              NULL);
   DEFINE_bool(execstack, options::DASH_Z, '\0', false,
              N_("Mark output as requiring executable stack"), NULL);
+  DEFINE_bool(global, options::DASH_Z, '\0', false,
+             N_("Make symbols in DSO available for subsequently loaded "
+                "objects"), NULL);
   DEFINE_bool(initfirst, options::DASH_Z, '\0', false,
              N_("Mark DSO to be initialized first at runtime"),
              NULL);
@@ -1426,6 +1442,11 @@ class General_options
   in_dynamic_list(const char* symbol) const
   { return this->dynamic_list_.version_script_info()->symbol_is_local(symbol); }
 
+  // True if a --dynamic-list script was provided.
+  bool
+  have_dynamic_list() const
+  { return this->have_dynamic_list_; }
+
   // Finalize the dynamic list.
   void
   finalize_dynamic_list()
@@ -1579,6 +1600,8 @@ class General_options
   // script.cc, we store this as a Script_options object, even though
   // we only use a single Version_tree from it.
   Script_options dynamic_list_;
+  // Whether a --dynamic-list file was provided.
+  bool have_dynamic_list_;
   // The incremental linking mode.
   Incremental_mode incremental_mode_;
   // The disposition given by the --incremental-changed,
This page took 0.025624 seconds and 4 git commands to generate.