PR gold/20462: Fix bogus layout on ARM with linker script using PHDRS clause

gold/
	PR gold/20462
	* script-sections.cc (Script_sections::release_segments):
	Reset this->segments_created_.
This commit is contained in:
Roland McGrath 2016-08-12 09:55:25 -07:00
parent f300578f78
commit 3785f51aa2
2 changed files with 27 additions and 20 deletions

View file

@ -1,3 +1,9 @@
2016-08-12 Roland McGrath <roland@hack.frob.com>
PR gold/20462
* script-sections.cc (Script_sections::release_segments):
Reset this->segments_created_.
2016-08-12 Roland McGrath <roland@hack.frob.com>
* yyscript.y (HIDDEN): New %token.

View file

@ -4459,6 +4459,7 @@ Script_sections::release_segments()
++p)
(*p)->release_segment();
}
this->segments_created_ = false;
}
// Print the SECTIONS clause to F for debugging.