Skip to content

paullegranddc/self-executable-dynlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# POC of an executable rust shared lib

For now only work on linux x86 and aarch64

To build

```
./build.sh build <target>
```

This will produce two objects in the `./build` directory

* `libself_executable_dynlib.so`, a shared library that should also be executable

* `main_bin` a binary dynamically linked to `libself_executable_dynlib`, that call into it to fork and
execute itself

Run with 

```
LD_LIBRARY_PATH="./build:$LD_LIBRARY_PATH" ./build/main_bin
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published