diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-23 05:05:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-23 05:05:48 +0000 |
commit | 943f35e2d3a61fa96012d2b306238f941847f838 (patch) | |
tree | 9ba5f5354e12413d5c14809fc9021083c0d5b685 /gold/target.h | |
parent | a954d6ce96504c572367fc9d2b2944905300d22a (diff) | |
download | binutils-redhat-943f35e2d3a61fa96012d2b306238f941847f838.tar.gz |
Add support for PT_GNU_STACK.
Diffstat (limited to 'gold/target.h')
-rw-r--r-- | gold/target.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/target.h b/gold/target.h index 3908174e38..32166d12a7 100644 --- a/gold/target.h +++ b/gold/target.h @@ -108,6 +108,14 @@ class Target common_pagesize() const { return this->pti_->common_pagesize; } + // If we see some object files with .note.GNU-stack sections, and + // some objects files without them, this returns whether we should + // consider the object files without them to imply that the stack + // should be executable. + bool + is_default_stack_executable() const + { return this->pti_->is_default_stack_executable; } + // This is called to tell the target to complete any sections it is // handling. After this all sections must have their final size. void @@ -146,6 +154,9 @@ class Target bool has_resolve; // Whether this target has a specific code fill function. bool has_code_fill; + // Whether an object file with no .note.GNU-stack sections implies + // that the stack should be executable. + bool is_default_stack_executable; // The default dynamic linker name. const char* dynamic_linker; // The default text segment address. |