[gold] Implement -z stack-size option
authorRoland McGrath <mcgrathr@google.com>
Tue, 23 Aug 2016 23:43:33 +0000 (16:43 -0700)
committerRoland McGrath <mcgrathr@google.com>
Wed, 24 Aug 2016 00:15:53 +0000 (17:15 -0700)
commit1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01
tree3f6a853a52a853553a008e273183dbb233613291
parent4ba25152ff03e835bbbb2512ea71b7fefe3b7e89
[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.
gold/ChangeLog
gold/layout.cc
gold/layout.h
gold/options.h
gold/output.h