[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.
This commit is contained in:
Roland McGrath
2016-08-23 16:43:33 -07:00
parent 4ba25152ff
commit 1130c90ed7
5 changed files with 49 additions and 19 deletions

View File

@@ -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