[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynlib_addr and stripped dynamic modules

From: Philipp Stephani
Subject: Re: dynlib_addr and stripped dynamic modules
Date: Mon, 07 Dec 2015 18:37:55 +0000

Eli Zaretskii <address@hidden> schrieb am So., 22. Nov. 2015 um 19:25 Uhr:
Does dynlib_laddr (and its underlying library function dladdr) work on
Posix hosts when the module was stripped of any unneeded symbols?

Well written Emacs modules will have all but one of its functions
static and un-exported, so the only way to access the name of a
function by its address is to read a symbol table of some kind.  Does
that work with *.so files that were run through "strip --strip-unneeded"?

Probably not, but I haven't tested it. I've added dladdr because I found it useful for debugging myself and it's easy to implement, and I guess during debugging people will often work with unstripped libraries. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]