aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-16 22:10:19 -0400
committerAndreas K. Hüttel <dilfridge@gentoo.org>2019-10-13 05:47:50 +0200
commite745f6190923243ad1480cbc135e911b18b995e7 (patch)
tree7bf09ce7975d9d7937887452b9cc4e4dd42f0f3e
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-e745f6190923243ad1480cbc135e911b18b995e7.tar.gz
binutils-gdb-e745f6190923243ad1480cbc135e911b18b995e7.tar.bz2
binutils-gdb-e745f6190923243ad1480cbc135e911b18b995e7.zip
Gentoo: ld: always warn about textrels in files
textrels are bad for forcing copy-on-write (this affects everyone), and for security/runtime code generation, this affects security ppl. But in either case, it doesn't matter who needs textrels, it's the very fact that they're needed at all. (cherry picked from commit cd6411ad57aab78686f67cbbc1ed70ee810ad335) (cherry picked from commit c7ba0482f06cc42f528139a01136c9dd15c8f403)
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index e24194ef87..335334444b 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -296,6 +296,7 @@ main (int argc, char **argv)
link_info.dynamic_undefined_weak = -1;
link_info.pei386_auto_import = -1;
link_info.spare_dynamic_tags = 5;
+ link_info.warn_shared_textrel = TRUE;
link_info.path_separator = ':';
#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;