Add a linker warning when creating potentially dangerous executable segments. Add...
authorNick Clifton <nickc@redhat.com>
Tue, 3 May 2022 10:42:24 +0000 (11:42 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 3 May 2022 10:42:24 +0000 (11:42 +0100)
commitba951afb99912da01a6e8434126b8fac7aa75107
treee94ddfba29d29a82ab36d28592d6c8e7edd04350
parent46465574a925062ba7dfa72f49ba5199d7a39fc3
Add a linker warning when creating potentially dangerous executable segments.  Add tests, options to disabke and configure switches to choose defaults.
21 files changed:
bfd/elf.c
bfd/elflink.c
binutils/testsuite/lib/binutils-common.exp
include/bfdlink.h
ld/NEWS
ld/aclocal.m4
ld/config.in
ld/configure
ld/configure.ac
ld/emultempl/elf.em
ld/ld.texi
ld/ldlex.h
ld/lexsup.c
ld/testsuite/ld-elf/changelma.d
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/flags1.d
ld/testsuite/ld-elf/maxpage5.d
ld/testsuite/ld-elf/note-2.d
ld/testsuite/ld-elf/rwx-segments-1.l [new file with mode: 0644]
ld/testsuite/ld-elf/rwx-segments-2.l [new file with mode: 0644]
ld/testsuite/ld-elf/rwx-segments-2.t [new file with mode: 0644]