Skip to content

vmezzela/getsympos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GetSympos

When livepatching a function with a non-unique name in an ELF binary, you need the symbol position (sympos) to distinguish between the different instances.

getsympos is a utility that retrieves this sympos for you.

The livepatch symbol has sympos=0 only when the the symbol name of the target is unique, otherwise the sympos is counted starting from 1.

Usage

getsympos --elf <elf> --symbol <symbol> --cu <src file with the symbol definition>

# if the elf doesn't have the debug symbols:
export DEBUGINFOD_URLS="<URL>:<PORT>" # Optional
getsympos --elf $(debuginfod-find debuginfo <elf>) 

Sometimes the debuginfod query fails, clearing the cache might solve the issue

Installation

pipx install .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages