fixes attachment of dns uprobes when libc is stripped of symbol names (.dynsym instead of .symtab)

This commit is contained in:
Jeremy Mahieu 2022-06-07 00:04:08 +02:00
parent e974364629
commit 69ca95b796

View file

@ -78,7 +78,7 @@ func findLibc() (string, error) {
// Iterates over all symbols in an elf file and returns the offset matching the provided symbol name.
func lookupSymbol(elffile *elf.File, symbolName string) (uint64, error) {
symbols, err := elffile.Symbols()
symbols, err := elffile.DynamicSymbols()
if err != nil {
return 0, err
}