aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-03-24 18:42:10 +0000
committerIan Lance Taylor <ian@airs.com>2009-03-24 18:42:10 +0000
commitf6060a4d43e06a6ca5dd201b069ab9f29aae1b81 (patch)
tree61b8f7f3f1bf993a489dd496844d0b3a481762b6 /gold/object.h
parent34274ccc6a1febcac41329a6103eff8880630825 (diff)
downloadgdb-f6060a4d43e06a6ca5dd201b069ab9f29aae1b81.zip
gdb-f6060a4d43e06a6ca5dd201b069ab9f29aae1b81.tar.gz
gdb-f6060a4d43e06a6ca5dd201b069ab9f29aae1b81.tar.bz2
* object.cc (is_elf_object): Define.
* object.h (is_elf_object): Declare. * archive.cc (Archive::get_elf_object_for_member): Call is_elf_object. * readsymc.cc (Read_symbols::do_read_symbols): Likewise.
Diffstat (limited to 'gold/object.h')
-rw-r--r--gold/object.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index 53d1944..97c126d 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -1921,6 +1921,14 @@ struct Relocate_info
location(size_t relnum, off_t reloffset) const;
};
+// Return whether INPUT_FILE contains an ELF object start at file
+// offset OFFSET. This sets *START to point to a view of the start of
+// the file. It sets *READ_SIZE to the number of bytes in the view.
+
+extern bool
+is_elf_object(Input_file* input_file, off_t offset,
+ const unsigned char** start, int *read_size);
+
// Return an Object appropriate for the input file. P is BYTES long,
// and holds the ELF header. If PUNCONFIGURED is not NULL, then if
// this sees an object the linker is not configured to support, it