aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-04-23 17:32:53 +0000
committerIan Lance Taylor <ian@airs.com>2008-04-23 17:32:53 +0000
commitc165fb930adf54d39f41bf4f1da0dac30efcaa8e (patch)
tree06c428b9bfe2f1d88c42fd984c72fe92df8bd26c /gold/object.cc
parent7ef7376804cf483f6173080df1585c6fb16af7ca (diff)
downloadgdb-c165fb930adf54d39f41bf4f1da0dac30efcaa8e.zip
gdb-c165fb930adf54d39f41bf4f1da0dac30efcaa8e.tar.gz
gdb-c165fb930adf54d39f41bf4f1da0dac30efcaa8e.tar.bz2
* object.cc (make_elf_object): Correct test for 64-bit ELF file
header size.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc
index d060f8d..9cfd886 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1678,7 +1678,7 @@ make_elf_object(const std::string& name, Input_file* input_file, off_t offset,
}
else
{
- if (bytes < elfcpp::Elf_sizes<32>::ehdr_size)
+ if (bytes < elfcpp::Elf_sizes<64>::ehdr_size)
{
gold_error(_("%s: ELF file too short"), name.c_str());
return NULL;