Before this patch, elfabi wrote 0 to sh_info of the .dynsym section when it is supplied with a tbe file contains no non-local symbol, making the ELF stub file invalid. This patch fixed this issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
an empty symbol table
It is not empty. It contains exactly one entry, a local symbol with index 0.
llvm/lib/InterfaceStub/ELFObjHandler.cpp | ||
---|---|---|
306 | // The number of local symbols, which is exactly 1 (the undefined symbol at index 0) |
Comment Actions
What I mean is that the Symbol section in the yaml tbe file is empty. But I think it is confusing to use the term empty symbol table here. I changed the description to make it more precise.
// The number of local symbols, which is exactly 1 (the undefined symbol at index 0)