* PR/20346 - make gold --help print whether "-z relro" is the default
@ 2016-07-24 19:13 Дилян Палаузов
0 siblings, 0 replies; only message in thread
From: Дилян Палаузов @ 2016-07-24 19:13 UTC (permalink / raw)
To: binutils
Please apply the following snippet, so that "gold --help" prints whether "-z relro" is enabled by default.
diff --git a/gold/options.h b/gold/options.h
index 23c9658..bfed05c 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1337,8 +1337,13 @@ class General_options
N_("Mark DSO to indicate that needs immediate $ORIGIN "
"processing at runtime"), NULL);
DEFINE_bool(relro, options::DASH_Z, '\0', DEFAULT_LD_Z_RELRO,
- N_("Where possible mark variables read-only after relocation"),
+#if DEFAULT_LD_Z_RELRO
+ N_("Where possible mark variables read-only after relocation (default)"),
N_("Don't mark variables read-only after relocation"));
+#else
+ N_("Where possible mark variables read-only after relocation"),
+ N_("Don't mark variables read-only after relocation (default)"));
+#endif
DEFINE_bool(text, options::DASH_Z, '\0', false,
N_("Do not permit relocations in read-only segments"),
N_("Permit relocations in read-only segments (default)"));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-24 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-24 19:13 PR/20346 - make gold --help print whether "-z relro" is the default Дилян Палаузов
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).