aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
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/layout.h
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/layout.h')
-rw-r--r--gold/layout.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 6e817ca..cfbb9f0 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -470,7 +470,8 @@ class Layout
// .note.GNU-stack section. GNU_STACK_FLAGS is the section flags
// from that section if there was one.
void
- layout_gnu_stack(bool seen_gnu_stack, uint64_t gnu_stack_flags);
+ layout_gnu_stack(bool seen_gnu_stack, uint64_t gnu_stack_flags,
+ const Object*);
// Add an Output_section_data to the layout. This is used for
// special sections like the GOT section. ORDER is where the