Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gandro/rust-ld-preload-example
https://github.com/gandro/rust-ld-preload-example
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gandro/rust-ld-preload-example
- Owner: gandro
- Created: 2017-12-03T00:27:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T22:28:05.000Z (about 7 years ago)
- Last Synced: 2024-10-13T20:41:53.966Z (2 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example: `LD_PRELOAD` with Rust
# build a Rust cdylib which hijacks call to `puts`
$ cargo build --release# a example C program
$ gcc hello.c -o hello
$ ./hello
Hello there, C is awesome!# use LD_PRELOAD
$ LD_PRELOAD=./target/release/libpreload.so ./hello
Hello there, Rust is awesome!