elfcpp/:
authorIan Lance Taylor <ian@airs.com>
Fri, 9 Oct 2009 16:40:51 +0000 (16:40 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 9 Oct 2009 16:40:51 +0000 (16:40 +0000)
commitc549a6949c8cbbbeafa79ab903b172bbc5f2b8ea
treed7881e3b7056774b661607d3d3ae9e56e3a14ebf
parente322137b9b864508a8b8f378ebb331589812ed18
elfcpp/:
* elfcpp_file.h: Fix header guard.  Include <cstdio>.
(class Elf_recognizer): New class, code from gold/object.cc.
(Elf_file::find_section_by_type): New method.
gold/:
* incremental.cc: Include <cstdarg> and "target-select.h".
(vexplain_no_incremental): New function.
(explain_no_incremental): New function.
(Incremental_binary::error): New method.
(Sized_incremental_binary::do_find_incremental_inputs_section): New
method.
(make_sized_incremental_binary): New function.
(open_incremental_binary): New function.
(can_incrementally_link_file): Add checks if output is ELF and has
inputs section.
* incremental.h: Include "elfcpp_file.h" and "output.h".
(Incremental_binary): New class.
(Sized_incremental_binary): New class.
(open_incremental_binary): Declare.
* object.cc (is_elf_object): Use
elfcpp::Elf_recognizer::is_elf_file.
(make_elf_object): Use elfcpp::Elf_recognizer::is_valid_header.
* output.h (Output_file::filesize): New method.
elfcpp/ChangeLog
elfcpp/elfcpp_file.h
gold/ChangeLog
gold/incremental.cc
gold/incremental.h
gold/object.cc
gold/output.h