diff options
author | Nick Clifton <nickc@redhat.com> | 2022-05-03 11:42:24 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-05-03 11:42:24 +0100 |
commit | ba951afb99912da01a6e8434126b8fac7aa75107 (patch) | |
tree | e94ddfba29d29a82ab36d28592d6c8e7edd04350 /ld/emultempl | |
parent | 46465574a925062ba7dfa72f49ba5199d7a39fc3 (diff) | |
download | gdb-ba951afb99912da01a6e8434126b8fac7aa75107.zip gdb-ba951afb99912da01a6e8434126b8fac7aa75107.tar.gz gdb-ba951afb99912da01a6e8434126b8fac7aa75107.tar.bz2 |
Add a linker warning when creating potentially dangerous executable segments. Add tests, options to disabke and configure switches to choose defaults.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf.em | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em index 7ae6f6d..c027559 100644 --- a/ld/emultempl/elf.em +++ b/ld/emultempl/elf.em @@ -92,6 +92,9 @@ EOF fi fragment <<EOF link_info.separate_code = DEFAULT_LD_Z_SEPARATE_CODE; + link_info.warn_execstack = DEFAULT_LD_WARN_EXECSTACK; + link_info.no_warn_rwx_segments = ! DEFAULT_LD_WARN_RWX_SEGMENTS; + link_info.default_execstack = DEFAULT_LD_EXECSTACK; } EOF |