volatilityfoundation / dwarf2json

convert ELF/DWARF symbol and type information into vol3's intermediate JSON
Other
106 stars 28 forks source link

d.AddSection undefined (type *dwarf.Data has no field or method AddSection) #34

Closed tklengyel closed 3 years ago

tklengyel commented 3 years ago

Trying to build the latest master branch results in the error


./dwarf.go:108:15: d.AddSection undefined (type *dwarf.Data has no field or method AddSection)
tklengyel commented 3 years ago

Regression seems to be caused by e5104ad66cccbe3bc5cae502236d814d9f3e9f33

npetroni commented 3 years ago

Builds fine for me using Go 1.14 and Go 1.15. Can you provide more details?

Thanks

tklengyel commented 3 years ago

go version go1.13.8 linux/amd64, installed on a stock Ubuntu 20.04.

cstation commented 3 years ago

AddSection is added in Go 1.14 (changelog), thus breaking dwarf2json's compatibility with Go 1.13.

npetroni commented 3 years ago

Cool, thanks. 1.13 is not maintained anymore so we will update our docs. Build is passing with 1.15.