From 6b1edb94fedc7103b4929354d27304d0bd756f49 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 22 Jun 2016 05:39:22 -0700 Subject: 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. --- gold/config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gold/config.in') diff --git a/gold/config.in b/gold/config.in index 88e8712..d9f7b76 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 -- cgit v1.1