[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/20346] New: Modify "gold --help" to show if "-z relro" is enab
From: |
dilyan.palauzov at aegee dot org |
Subject: |
[Bug gold/20346] New: Modify "gold --help" to show if "-z relro" is enabled by default |
Date: |
Sun, 10 Jul 2016 18:44:01 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20346
Bug ID: 20346
Summary: Modify "gold --help" to show if "-z relro" is enabled
by default
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: dilyan.palauzov at aegee dot org
CC: ian at airs dot com
Target Milestone: ---
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)"));
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/20346] New: Modify "gold --help" to show if "-z relro" is enabled by default,
dilyan.palauzov at aegee dot org <=