|
|
[[_TOC_]]
|
|
|
|
|
|
|
|
|
### Where are libraries loaded from?
|
|
|
|
|
|
**Problem**
|
|
|
|
|
|
I have problems with libraries loaded (eventually dynamically) from my application and I am not sure if the correct library is loaded.
|
|
|
|
|
|
Is there a way to know which libraries are loaded and from where?
|
|
|
|
|
|
**Solution**
|
|
|
`LD_DEBUG` can output to a file all ld operations:
|
|
|
|
|
|
- Set the file where you want to save the information:
|
|
|
|
|
|
```
|
|
|
> export LD_DEBUG_OUTPUT=/dev/shm/my_ld_file
|
|
|
```
|
|
|
- Run you application `my_executable` with ld debug options set:
|
|
|
|
|
|
```
|
|
|
> LD_DEBUG=libs my_executable
|
|
|
``` |
|
|
\ No newline at end of file |