Sometimes I observe this in gdb:
i.e., "my_functio n" does exist in the current executable.
however, dlsym does not find it:
This is a C program; dlsym does find other defined functions and variables.
(this question stems from this bug report)
What could cause this? How do I avoid this?
Code:
(gdb) br my_function Breakpoint .. at 0x...: file ..., line ...
however, dlsym does not find it:
Code:
(gdb) p dlsym(0,"my_function") $6 = 0
(this question stems from this bug report)
What could cause this? How do I avoid this?
Comment