* object.cc (Sized_relobj::include_section_group): Check for
invalid section group.
This commit is contained in:
parent
c165fb930a
commit
5543870269
|
@ -1,5 +1,8 @@
|
||||||
2008-04-23 Ian Lance Taylor <iant@google.com>
|
2008-04-23 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* object.cc (Sized_relobj::include_section_group): Check for
|
||||||
|
invalid section group.
|
||||||
|
|
||||||
* object.cc (make_elf_object): Correct test for 64-bit ELF file
|
* object.cc (make_elf_object): Correct test for 64-bit ELF file
|
||||||
header size.
|
header size.
|
||||||
|
|
||||||
|
|
|
@ -609,6 +609,13 @@ Sized_relobj<size, big_endian>::include_section_group(
|
||||||
secnum, index);
|
secnum, index);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for an earlier section number, since we're going to get
|
||||||
|
// it wrong--we may have already decided to include the section.
|
||||||
|
if (secnum < index)
|
||||||
|
this->error(_("invalid section group %u refers to earlier section %u"),
|
||||||
|
index, secnum);
|
||||||
|
|
||||||
(*omit)[secnum] = true;
|
(*omit)[secnum] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue