mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-04 06:51:56 +00:00
Add a comment about ELF spec and the symbol table's sh_info.
llvm-svn: 327645
This commit is contained in:
parent
96cf00d01d
commit
8e53917a26
@ -866,6 +866,10 @@ template <class ELFT> void SharedFile<ELFT>::parseRest() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// ELF spec requires that all local symbols precede weak or global
|
||||
// symbols in each symbol table, and the index of first non-local symbol
|
||||
// is stored to sh_info. If a local symbol appears after some non-local
|
||||
// symbol, that's a violation of the spec.
|
||||
if (Sym.getBinding() == STB_LOCAL) {
|
||||
warn("found local symbol '" + Name +
|
||||
"' in global part of symbol table in file " + toString(this));
|
||||
|
Loading…
Reference in New Issue
Block a user