Skip to content

Commit 4ef64df

Browse files
committed
Fix ELFVersionData for objects that don't have any
1 parent 222f222 commit 4ef64df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ELF/ELFVersion.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ end
4040
function ELFVersionData(oh::H) where {H <: ELFHandle}
4141
s = findfirst(Sections(oh), ".gnu.version_d")
4242
strtab = StrTab(findfirst(Sections(oh), ".dynstr"))
43+
(isnothing(s) || isnothing(strtab)) && return ELFVersionEntry[]
4344

4445
# Queue oh up to the beginning of this section
4546
seek(oh, section_offset(s))

0 commit comments

Comments
 (0)