diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-03 19:27:30 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-03 20:19:09 -0800 |
commit | 893932e90f967169fcf494e36ac9001f2f1b90a5 (patch) | |
tree | d6d7ef14f4d0bc6f2443f74998933f6e012ddae7 /config/binutils | |
parent | d9afcd80fc3feb83684c530adc7413e5ed17cf98 (diff) | |
download | crosstool-ng-893932e90f967169fcf494e36ac9001f2f1b90a5.tar.gz crosstool-ng-893932e90f967169fcf494e36ac9001f2f1b90a5.tar.bz2 crosstool-ng-893932e90f967169fcf494e36ac9001f2f1b90a5.zip |
Add a config option for default RELRO setting
Fixes #656.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'config/binutils')
-rw-r--r-- | config/binutils/binutils.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index bd32bd6b..c0a0c556 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -146,6 +146,16 @@ config BINUTILS_PLUGINS Especially, gold can use the lto-plugin, as installed by gcc, to handle LTO. +config BINUTILS_RELRO + tristate + prompt "Enable -z relro in ELF linker by default" if BINUTILS_2_27_or_later + default m + help + Setting this option forces "-z relro" by default in the ELF linker. + Clearing this option forces "-z norelro" by default in the ELF linker. + Setting this option to 'M' configures binutils with their internal + default for the selected architecture. + config BINUTILS_EXTRA_CONFIG_ARRAY string prompt "binutils extra config" |