-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write/elf: fix writing of strtab when symtab is empty
Previously, if the symtab was empty then we were writing a strtab that had 0 bytes of data. This gives a linker error: SHT_STRTAB string table section [index 4] is empty Also, if there is a symtab then there must be a strtab, otherwise the error is: invalid sh_type for string table section [index 0]: expected SHT_STRTAB, but got SHT_NULL
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
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