diff options
author | Roland McGrath <mcgrathr@google.com> | 2016-08-23 16:43:33 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2016-08-23 17:15:53 -0700 |
commit | 1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01 (patch) | |
tree | 3f6a853a52a853553a008e273183dbb233613291 /gold/layout.h | |
parent | 4ba25152ff03e835bbbb2512ea71b7fefe3b7e89 (diff) | |
download | gdb-1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01.zip gdb-1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01.tar.gz gdb-1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01.tar.bz2 |
[gold] Implement -z stack-size option
gold/
* options.h (General_options): Grok -z stack-size.
* output.h (Output_segment::set_size): New method.
* layout.cc (Layout::create_executable_stack_info): Renamed to ...
(Layout::create_stack_segment): ... this. Always create the
segment if -z stack-size was used.
(Layout::set_segment_offsets): Don't call ->set_offset on the
PT_GNU_STACK segment.
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/layout.h b/gold/layout.h index c369fef..b2d699f 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -1037,9 +1037,9 @@ class Layout void create_gold_note(); - // Record whether the stack must be executable. + // Record whether the stack must be executable, and a user-supplied size. void - create_executable_stack_info(); + create_stack_segment(); // Create a build ID note if needed. void |