Skip to content

Cross platform CLI to add sourcelink into to binary files

Notifications You must be signed in to change notification settings

schultetwin1/sourcelynk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcelynk

Sourcelynk is a command line tool to generate and embed information about where to find the source files into an ELF.

Sourcelynk is a Rust implementation of Microsoft's SourceLink. Though SourceLink is targetted towards PDBs, Sourcelynk attempts to work for ELF, PDB, and Mach-O files.

How does it work?

Sourcelynk will generate the sourcelink json for any binary (with symbols) that you point it at and then (optionally) embed that json into the binary itself. How this works is different per binary format.

ELFs

ELFs are (currently) the only tool supported by Sourcelynk. The sourcelink JSON file created by Sourcelynk is stored in a new section of the ELF called ".debug_sourcelink".

Currently no debuggers support using source link JSON in ELF files.

About

Cross platform CLI to add sourcelink into to binary files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages