From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Mon, 07 Dec 2015 18:37:55 +0000
>
> Eli Zaretskii <el= iz@gnu.org> schrieb am So., 22. Nov. 2015 um 19:25 Uhr:
>
>=C2=A0 =C2=A0 =C2=A0Does dynlib_laddr (and its underlying library funct= ion dladdr) work on
>=C2=A0 =C2=A0 =C2=A0Posix hosts when the module was stripped of any unn= eeded symbols?
>
>=C2=A0 =C2=A0 =C2=A0Well written Emacs modules will have all but one of= its functions
>=C2=A0 =C2=A0 =C2=A0static and un-exported, so the only way to access t= he name of a
>=C2=A0 =C2=A0 =C2=A0function by its address is to read a symbol table o= f some kind. Does
>=C2=A0 =C2=A0 =C2=A0that work with *.so files that were run through &qu= ot;strip --strip-unneeded"?
>
> Probably not, but I haven't tested it. I've added dladdr becau= se I found it
> useful for debugging myself and it's easy to implement, and I gues= s during
> debugging people will often work with unstripped libraries.
The information from dynlib_addr is used every time there's a fatal
error in a module, so it's not just for debugging the module by its
author, it's also for users to report when they encounter errors while<= br> using the module.