Skip to content
/ bandld Public

A simple ld wrapper that ensures correct linking when using --wrap=symbol.

Notifications You must be signed in to change notification settings

whexy/bandld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BAND-ld

BAND-ld is a straightforward ld wrapper designed to ensure that when the --wrap=symbol option is used and __wrap_symbol is not defined, the target can still be correctly linked. It does this by automatically providing a default implementation of the __wrap_symbol function.

Usage

  1. Build bandld using Cargo: cargo build --release

  2. Rename your existing ld to ld-orig: mv /usr/bin/ld /usr/bin/ld-orig

  3. Copy the built bandld to replace the original ld: cp /target/release/bandld /usr/bin/ld

Debugging

To view detailed logs, check the files located at /tmp/wrap_symbols_*.

About

A simple ld wrapper that ensures correct linking when using --wrap=symbol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages