* object.cc (make_elf_object): Correct test for 64-bit ELF file

header size.
This commit is contained in:
Ian Lance Taylor 2008-04-23 17:32:53 +00:00
parent 7ef7376804
commit c165fb930a
2 changed files with 4 additions and 1 deletions

View file

@ -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;