aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-06-22 05:39:22 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-06-22 05:39:39 -0700
commit6b1edb94fedc7103b4929354d27304d0bd756f49 (patch)
tree8ec307e7bd06be77c1e3ee1f0035494f54520297 /gold/options.h
parent647e4d46495f2bfb0950fd1066c8a660173cca40 (diff)
downloadgdb-6b1edb94fedc7103b4929354d27304d0bd756f49.zip
gdb-6b1edb94fedc7103b4929354d27304d0bd756f49.tar.gz
gdb-6b1edb94fedc7103b4929354d27304d0bd756f49.tar.bz2
gold: Add a linker configure option --enable-relro
Add a configure option --enable-relro to decide whether -z relro should be enabled by default. Default to yes. PR ld/20283 * NEWS: Mention --enable-relro. * configure.ac: Add --enable-relro. (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default to 1. * config.in: Regenerated. * configure: Likewise. * options.h (General_options::relro): Default to DEFAULT_LD_Z_RELRO.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index 877e6d1..23c9658 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1336,7 +1336,7 @@ class General_options
DEFINE_bool(origin, options::DASH_Z, '\0', false,
N_("Mark DSO to indicate that needs immediate $ORIGIN "
"processing at runtime"), NULL);
- DEFINE_bool(relro, options::DASH_Z, '\0', false,
+ DEFINE_bool(relro, options::DASH_Z, '\0', DEFAULT_LD_Z_RELRO,
N_("Where possible mark variables read-only after relocation"),
N_("Don't mark variables read-only after relocation"));
DEFINE_bool(text, options::DASH_Z, '\0', false,