Hi Ossama, Denis,
On Tue, 2018-04-24 at 14:35 -0700, Othman, Ossama wrote:
On Tue, Apr 24, 2018 at 1:30 PM, Denis Kenzior <denkenz(a)gmail.com>
> > Quick question: can I use l_debug() when I am dynamically linking
> > with
> > installed ell library (i.e., the one created with make install
> > and
> > linked as -lell)?
> > Calling l_debug() generates no output, l_info() works just fine.
> I suspect you're the first to try this, so doesn't surprise me that
> doesn't work. I imagine the current setup fails because the shared
> has its own section and the executable has its own.
> Probably can be solved with some macro magic, but will require a
> bit of
> surgery inside ell...
This used to work for me, but prior to today the last time I tried
enabling debug logging code was probably a couple of months ago.
Most likely to do with memory sections. One additional piece of info in
case it's helpful:
The section denoted by __start___debug and __stop___debug appears
to be shorter by size of one struct l_debug_desc when linking with
-lell (compared when compiled with internal lib).