From 1130c90ed7c8d1bc7b70c701b62cdbc23ac9fc01 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 23 Aug 2016 16:43:33 -0700 Subject: [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/layout.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gold/layout.h') 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 -- cgit v1.1