as: output:symbol_image/1: handle symbols without values

This commit is contained in:
Mikael Pettersson 2020-06-07 21:05:21 +02:00
parent ec21b92348
commit e082530780

View File

@ -266,7 +266,7 @@ symbol_image(Symbol) ->
} = Symbol,
ElfSym =
#elf36_Sym{ st_name = StName
, st_value = StValue
, st_value = if StValue =:= false -> 0; true -> StValue end
, st_size = if StSize =:= false -> 0; true -> StSize end
, st_info = StInfo
, st_other = ?STV_DEFAULT % FIXME: should be set earlier