~tim/dlopen_test

3a52170d7c7d07422893e23c810946d3d309c0df — Tim Morgan 2 years ago 28cdba3
Update readme
1 files changed, 13 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +13 -0
@@ 1,6 1,10 @@
This sample bit of code demonstrates how to use `dlopen`, `dlsym`, et al to dynamically load
a shared object file into a running process.

I've only tested this on Linux... I'm not sure if this will work on Mac or Linux without some tweaks.

## Run

1. Compile the library:

   ```


@@ 26,3 30,12 @@ a shared object file into a running process.
   ```

5. Witness the output change in the main program.


## Output

```
hello from lib_loaded
Loaded lib successfully
hello from lib_func
```