Skip to content

Instantly share code, notes, and snippets.

@yvasiyarov
Created October 26, 2014 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yvasiyarov/7dce6a865cb57d8001f7 to your computer and use it in GitHub Desktop.
Save yvasiyarov/7dce6a865cb57d8001f7 to your computer and use it in GitHub Desktop.
Load symbols from ELF
f, err := elf.Open(filename)
if err != nil {
return err
}
defer f.Close()
symbols, err := f.Symbols()
if err != nil {
return err
}
for _, symbol := range symbols {
r.Symbols[symbol.Value] = symbol.Name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment