mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-08 02:08:40 +00:00
An off-by-one error in the code to catch bogus vn_next fields meant that
linker testsuite failures were showing up for the cris target. Fixed by this patch. * readelf.c (process_version_sections): Fix off-by-one error in previous delta.
This commit is contained in:
parent
97323ad113
commit
bcf83b2a66
@ -1,3 +1,8 @@
|
||||
2014-03-20 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c (process_version_sections): Fix off-by-one error in
|
||||
previous delta.
|
||||
|
||||
2014-03-19 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/16723
|
||||
|
@ -8971,7 +8971,7 @@ process_version_sections (FILE * file)
|
||||
if (j < ent.vn_cnt)
|
||||
warn (_("Missing Version Needs auxillary information\n"));
|
||||
|
||||
if (ent.vn_next == 0 && cnt < section->sh_info)
|
||||
if (ent.vn_next == 0 && cnt < section->sh_info - 1)
|
||||
{
|
||||
warn (_("Corrupt Version Needs structure - offset to next structure is zero with entries still left to be processed\n"));
|
||||
cnt = section->sh_info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user