diff options
author | Cary Coutant <ccoutant@google.com> | 2010-12-09 23:19:50 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2010-12-09 23:19:50 +0000 |
commit | 83e17bd5ed3c2586f558202172bf9f52ac80650c (patch) | |
tree | 3e1249454b28872800852006958bd7e5e27c2705 /gold/options.h | |
parent | f9bbfb18bec91f344bcc74343ad77c8a0e49ed4e (diff) | |
download | gdb-83e17bd5ed3c2586f558202172bf9f52ac80650c.zip gdb-83e17bd5ed3c2586f558202172bf9f52ac80650c.tar.gz gdb-83e17bd5ed3c2586f558202172bf9f52ac80650c.tar.bz2 |
* layout.cc (Layout::layout_gnu_stack): Add warnings for executable
stack.
* layout.h (Layout::layout_gnu_stack): Add pointer to Object
parameter; change all callers.
* object.cc (Sized_relobj::do_layout): Adjust call to layout_gnu_stack.
* options.h (warn_execstack): New option.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index 7a694a9..8f240f0 100644 --- a/gold/options.h +++ b/gold/options.h @@ -1035,6 +1035,10 @@ class General_options DEFINE_bool(warn_constructors, options::TWO_DASHES, '\0', false, N_("Ignored"), N_("Ignored")); + DEFINE_bool(warn_execstack, options::TWO_DASHES, '\0', false, + N_("Warn if the stack is executable"), + N_("Do not warn if the stack is executable (default)")); + DEFINE_bool(warn_mismatch, options::TWO_DASHES, '\0', true, NULL, N_("Don't warn about mismatched input files")); |