aboutsummaryrefslogtreecommitdiff
path: root/include/bfdlink.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-04-20 13:37:51 +0100
committerNick Clifton <nickc@redhat.com>2022-04-20 13:39:05 +0100
commit65daf5bed68f3e792e80f7c9a12871fd71da32a2 (patch)
treea55da6b2014760d60106975406377517a8133874 /include/bfdlink.h
parent72b580b8f48927cf7bc4cf8bb951aaeff637d0ee (diff)
downloadfsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.zip
fsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.gz
fsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.bz2
Add linker warning for when it creates an executable stack.
PR 29072
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index 69fc9d3..b16f3f4 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -489,6 +489,10 @@ struct bfd_link_info
flags. */
unsigned int noexecstack: 1;
+ /* Tri-state variable: 0 => not set by user; 1 => set, warnings
+ enabled; 2 => warnings disabled; 3 => unused. */
+ unsigned int warn_execstack: 2;
+
/* TRUE if we want to produced optimized output files. This might
need much more time and therefore must be explicitly selected. */
unsigned int optimize: 1;