projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ef7376
)
* object.cc (make_elf_object): Correct test for 64-bit ELF file
author
Ian Lance Taylor
<ian@airs.com>
Wed, 23 Apr 2008 17:32:53 +0000
(17:32 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Wed, 23 Apr 2008 17:32:53 +0000
(17:32 +0000)
header size.
gold/ChangeLog
patch
|
blob
|
history
gold/object.cc
patch
|
blob
|
history
diff --git
a/gold/ChangeLog
b/gold/ChangeLog
index 3c4cbda9b26f801de14ef93439454ce7db0c771b..3e3f4fd511d0f42bb6394ce4be1cf46796258f0c 100644
(file)
--- a/
gold/ChangeLog
+++ b/
gold/ChangeLog
@@
-1,5
+1,8
@@
2008-04-23 Ian Lance Taylor <iant@google.com>
+ * object.cc (make_elf_object): Correct test for 64-bit ELF file
+ header size.
+
* readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
than read for file header.
* archive.cc (Archive::include_member): Likewise.
diff --git
a/gold/object.cc
b/gold/object.cc
index d060f8d7356af9ba1e212fd0e72b691c0c0fc96c..9cfd8867d40eb2972d843bc95055223210d7a23b 100644
(file)
--- 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;