Skip to content

Commit 35595db

Browse files
committed
Add isBSS function
1 parent 350e2a7 commit 35595db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ObjFileBase.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export ObjectHandle, SectionRef, SymbolRef, debugsections
66
export printfield, printentry, printfield_with_color, deref,
77
sectionaddress, sectionoffset, sectionsize, sectionname,
88
load_strtab, readmeta, StrTab, symname, Sections, symbolvalue,
9-
isundef, symbolnum, Symbols
9+
isundef, symbolnum, Symbols, isBSS
1010

1111
import Base: read, seek, readbytes, position, show, showcompact, readuntil, skip
1212

@@ -171,6 +171,9 @@ end
171171
symbolnum(x::SymbolRef) = symbolnum(deref(x))
172172
isundef(x::SymbolRef) = isundef(deref(x))
173173

174+
# Section properties
175+
isBSS(x::SectionRef) = isBSS(deref(x))
176+
174177
################################# Utilities ####################################
175178

176179
typealias SectionOrRef{T} Union{Section{T},SectionRef{T}}

0 commit comments

Comments
 (0)