[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/22221] add --no-dynamic-linker option
From: |
markus at trippelsdorf dot de |
Subject: |
[Bug gold/22221] add --no-dynamic-linker option |
Date: |
Wed, 27 Sep 2017 12:54:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22221
--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
So perhaps:
diff --git a/gold/layout.cc b/gold/layout.cc
index 5f25faea5532..4fe4d6825223 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -2749,7 +2749,8 @@ Layout::finalize(const Input_objects* input_objects,
Symbol_table* symtab,
// if we saw a .interp section in an input file.
if ((!parameters->options().shared()
|| parameters->options().dynamic_linker() != NULL)
- && this->interp_segment_ == NULL)
+ && this->interp_segment_ == NULL
+ && !parameters->options().no_dynamic_linker())
this->create_interp(target);
// Finish the .dynamic section to hold the dynamic data, and put
diff --git a/gold/options.h b/gold/options.h
index 93f81b29afcc..2b660c1e6d79 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1050,6 +1050,9 @@ class General_options
N_("Do not page align data, do not make text readonly"),
N_("Page align data, make text readonly"));
+ DEFINE_bool(no_dynamic_linker, options::TWO_DASHES, '\0', false,
+ N_("Produce an executable with no program interpreter header"),
NULL);
+
DEFINE_bool(no_keep_memory, options::TWO_DASHES, '\0', false,
N_("Use less memory and more disk I/O "
"(included only for compatibility with GNU ld)"), NULL);
--
You are receiving this mail because:
You are on the CC list for the bug.