* 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.
This commit is contained in:
parent
f9bbfb18be
commit
83e17bd5ed
5 changed files with 33 additions and 5 deletions
|
@ -1429,7 +1429,7 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab,
|
|||
}
|
||||
|
||||
if (!is_gc_pass_two)
|
||||
layout->layout_gnu_stack(seen_gnu_stack, gnu_stack_flags);
|
||||
layout->layout_gnu_stack(seen_gnu_stack, gnu_stack_flags, this);
|
||||
|
||||
// When doing a relocatable link handle the reloc sections at the
|
||||
// end. Garbage collection and Identical Code Folding is not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue