-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elf: Handle SHN_XINDEX for strtab section index (#304)
This happens when the number of sections in an ELF object reaches 2^16, at which point the u16 shstrndx takes the special value SHN_XINDEX. Fix based on algorithm from: github.com/gimli-rs/object/blob/c476071/src/read/elf/file.rs#L582-L600
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters