This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold patch] Add warning for executable stacks


Cary Coutant <ccoutant@google.com> writes:

>         * 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.


>    if (!seen_gnu_stack)
> -    this->input_without_gnu_stack_note_ = true;
> +    {
> +      this->input_without_gnu_stack_note_ = true;
> +      if (parameters->options().warn_execstack()
> +	  && parameters->target().is_default_stack_executable())
> +	gold_warning(_("%s: missing .note.GNU-stack section"),
> +		     obj->name().c_str());
> +    }

Please make this message
  %s: missing .note.GNU-stack section implies executable stack

This is OK with that change.

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]