mirror of
https://github.com/danog/gllvm.git
synced 2024-11-27 01:24:44 +01:00
SIGSEGV removal.
This commit is contained in:
parent
b40985cee2
commit
763672d293
@ -322,6 +322,9 @@ func extractSectionUnix(inputFile string) (contents []string) {
|
||||
LogFatal("ELF file %s could not be read.", inputFile)
|
||||
}
|
||||
section := elfFile.Section(ELFSectionName)
|
||||
if section == nil {
|
||||
LogFatal("Error reading the %s section of ELF file %s.", ELFSectionName, inputFile)
|
||||
}
|
||||
sectionContents, errContents := section.Data()
|
||||
if errContents != nil {
|
||||
LogFatal("Error reading the %s section of ELF file %s.", ELFSectionName, inputFile)
|
||||
|
Loading…
Reference in New Issue
Block a user