binutils-gdb/elfcpp
Ian Lance Taylor c549a6949c 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.
2009-10-09 16:40:51 +00:00
..
ChangeLog elfcpp/: 2009-10-09 16:40:51 +00:00
README Initial CVS checkin of gold 2006-08-04 23:10:59 +00:00
arm.h 2009-05-27 Doug Kwan <dougkwan@google.com> 2009-05-27 18:27:42 +00:00
dwarf.h elfcpp/: 2008-05-28 20:48:16 +00:00
elfcpp.h * config/obj-elf.c (obj_elf_type): Add code to support a type of 2009-07-23 13:00:30 +00:00
elfcpp_file.h elfcpp/: 2009-10-09 16:40:51 +00:00
elfcpp_internal.h Add licensing text to every source file. 2007-09-22 21:02:10 +00:00
elfcpp_swap.h elfcpp:/ 2009-03-02 02:45:29 +00:00
i386.h From Craig Silverstein: Add more DWARF info, add some i386 comments. 2007-11-02 03:31:41 +00:00
powerpc.h 2008-06-12 David S. Miller <davem@davemloft.net> 2008-06-12 16:58:40 +00:00
sparc.h * sparc.h (EF_SPARC_EXT_MASK, EF_SPARC_32PLUS_MASK, 2008-04-16 01:56:33 +00:00
x86_64.h Remove Andrew's e-mail address. 2008-01-09 19:40:24 +00:00

README

elfcpp is a C++ library for reading and writing ELF information.  This
was written to support gold, the ELF linker, and may not be generally
useful.

elfcpp does not do file I/O.  It deals only with offsets and memory
data.

For efficiency, most accessors are templates with two arguments: the
ELF file class (32 or 64 bits) and the endianness.