* incremental.cc (can_incremental_update): New function.

* incremental.h (can_incremental_update): New function.
	* layout.cc (Layout::init_fixed_output_section): Call it.
	(Layout::make_output_section): Don't allow patch space in .eh_frame.
	* object.cc (Sized_relobj_file::do_layout): Call
	can_incremental_update.
This commit is contained in:
Cary Coutant
2011-09-18 15:06:28 +00:00
parent 3451853062
commit aa06ae28f1
5 changed files with 35 additions and 7 deletions

View File

@ -81,6 +81,11 @@ enum Incremental_shlib_symbol_flags
static const int INCREMENTAL_SHLIB_SYM_FLAGS_SHIFT = 30;
// Return TRUE if a section of type SH_TYPE will can be updated in place
// during an incremental update.
bool
can_incremental_update(unsigned int sh_type);
// Create an Incremental_binary object for FILE. Returns NULL is this is not
// possible, e.g. FILE is not an ELF file or has an unsupported target.