This is an archive of the discontinued LLVM Phabricator instance.

[llvm/Object] - Fix the error message reported for a broken SHT_SYMTAB_SHNDX section.
ClosedPublic

Authored by grimar on Oct 22 2019, 6:44 AM.

Details

Summary

SHT_SYMTAB_SHNDX should have the same number of entries as the symbol table
associated (https://www.sco.com/developers/gabi/latest/ch4.sheader.html)

We currently can report the following message:
"SHT_SYMTAB_SHNDX section has sh_size (24) which is not equal to the number of symbols (2)"

It is just broken. This patch refines/fixes it.

Diff Detail

Event Timeline

grimar created this revision.Oct 22 2019, 6:44 AM
grimar updated this revision to Diff 226040.Oct 22 2019, 6:46 AM
  • Removed "FIXME" fixed.
This revision is now accepted and ready to land.Oct 24 2019, 7:00 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2019, 2:28 AM

Btw, I would suggest configuring your git client to set your full name as author; right now your commits only have a user name as author, not a full name as is customary in git.

Btw, I would suggest configuring your git client to set your full name as author; right now your commits only have a user name as author, not a full name as is customary in git.

I'll take a look, thanks! It also atm uses not the email I'd prefer to use..