aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2010-12-09 23:19:50 +0000
committerCary Coutant <ccoutant@google.com>2010-12-09 23:19:50 +0000
commit83e17bd5ed3c2586f558202172bf9f52ac80650c (patch)
tree3e1249454b28872800852006958bd7e5e27c2705 /gold/object.cc
parentf9bbfb18bec91f344bcc74343ad77c8a0e49ed4e (diff)
downloadgdb-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/object.cc')
-rw-r--r--gold/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc
index bde89f6..466d26f 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -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