mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
Ignore empty archives.
This commit is contained in:
@ -75,6 +75,13 @@ const char Archive::arfmag[2] = { '`', '\n' };
|
|||||||
void
|
void
|
||||||
Archive::setup()
|
Archive::setup()
|
||||||
{
|
{
|
||||||
|
// We need to ignore empty archives.
|
||||||
|
if (this->input_file_->file().filesize() == sarmag)
|
||||||
|
{
|
||||||
|
this->input_file_->file().unlock();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// The first member of the archive should be the symbol table.
|
// The first member of the archive should be the symbol table.
|
||||||
std::string armap_name;
|
std::string armap_name;
|
||||||
off_t armap_size = this->read_header(sarmag, &armap_name);
|
off_t armap_size = this->read_header(sarmag, &armap_name);
|
||||||
|
Reference in New Issue
Block a user