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 | 35cdfc9a874553807400007ffa36cf2884ba40f6 (patch) | |
tree | 2cb1c5ca78a50b21d20e709d9d066fad27f1f6e5 /gold/target.h | |
parent | 5cab6006497314f0d6785c5a5898be9f28713c72 (diff) | |
download | gdb-35cdfc9a874553807400007ffa36cf2884ba40f6.zip gdb-35cdfc9a874553807400007ffa36cf2884ba40f6.tar.gz gdb-35cdfc9a874553807400007ffa36cf2884ba40f6.tar.bz2 |
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 3908174..32166d1 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. |