From 83e17bd5ed3c2586f558202172bf9f52ac80650c Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 9 Dec 2010 23:19:50 +0000 Subject: * 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. --- gold/options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gold/options.h') 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")); -- cgit v1.1