diff --git a/shared/extractor.go b/shared/extractor.go index f18dfa8..4d88fc8 100644 --- a/shared/extractor.go +++ b/shared/extractor.go @@ -319,9 +319,9 @@ func extractSectionDarwin(inputFile string) (contents []string) { func extractSectionUnix(inputFile string) (contents []string) { elfFile, err := elf.Open(inputFile) if err != nil { - LogWarning("ELF file %s could not be read.", inputFile) + LogFatal("ELF file %s could not be read.", inputFile) return - } + } section := elfFile.Section(ELFSectionName) if section == nil { LogWarning("Error reading the %s section of ELF file %s.", ELFSectionName, inputFile)