diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-10-09 16:40:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-10-09 16:40:51 +0000 |
commit | c549a6949c8cbbbeafa79ab903b172bbc5f2b8ea (patch) | |
tree | d7881e3b7056774b661607d3d3ae9e56e3a14ebf /gold/output.h | |
parent | e322137b9b864508a8b8f378ebb331589812ed18 (diff) | |
download | gdb-c549a6949c8cbbbeafa79ab903b172bbc5f2b8ea.zip gdb-c549a6949c8cbbbeafa79ab903b172bbc5f2b8ea.tar.gz gdb-c549a6949c8cbbbeafa79ab903b172bbc5f2b8ea.tar.bz2 |
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.
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h index 6de6e69..377864c 100644 --- a/gold/output.h +++ b/gold/output.h @@ -3433,6 +3433,11 @@ class Output_file void close(); + // Return the size of this file. + off_t + filesize() + { return this->file_size_; } + // We currently always use mmap which makes the view handling quite // simple. In the future we may support other approaches. |