mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-15 01:00:26 +08:00
Warn if the sh_info field of a symbol table does not index the first non-local symbol in the section.
* readelf.c (process_symbol_table): Generate a warning if a local symbol is found at and offste greater than or equal to the sh_info field of it's section header.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-08-12 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* readelf.c (process_symbol_table): Generate a warning if a local
|
||||||
|
symbol is found at and offste greater than or equal to the sh_info
|
||||||
|
field of it's section header.
|
||||||
|
|
||||||
2016-08-08 Nick Clifton <nickc@redhat.com>
|
2016-08-08 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/20440
|
PR binutils/20440
|
||||||
|
@ -11114,6 +11114,11 @@ process_symbol_table (FILE * file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
putchar ('\n');
|
putchar ('\n');
|
||||||
|
|
||||||
|
if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
|
||||||
|
&& si >= section->sh_info)
|
||||||
|
warn (_("local symbol %u found at index >= %s's sh_info value of %u\n"),
|
||||||
|
si, printable_section_name (section), section->sh_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
free (symtab);
|
free (symtab);
|
||||||
|
Reference in New Issue
Block a user