summaryrefslogtreecommitdiff
path: root/gold/config.in
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/config.in
parent647e4d46495f2bfb0950fd1066c8a660173cca40 (diff)
downloadbinutils-gdb-6b1edb94fedc7103b4929354d27304d0bd756f49.tar.gz
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/config.in')
-rw-r--r--gold/config.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/config.in b/gold/config.in
index 88e8712c75c..d9f7b76f29a 100644
--- a/gold/config.in
+++ b/gold/config.in
@@ -10,6 +10,9 @@
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
+/* Define to 1 if you want to enable -z relro in ELF linker by default. */
+#undef DEFAULT_LD_Z_RELRO
+
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS