commit | b372bc2a157dc3bd2e836ea960af4870b50712fc | [log] [tgz] |
---|---|---|
author | Roland McGrath <mcgrathr@google.com> | Tue Aug 23 16:43:33 2016 -0700 |
committer | Roland McGrath <mcgrathr@google.com> | Tue Aug 23 17:17:46 2016 -0700 |
tree | 344281a251fdbe0a88334222ffc73a1d9d3b6a2f | |
parent | 4a3111d4c468e58a7fa252232e1d0cf1781f076c [diff] |
[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. (cherry picked from commit 1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01)