On 14 Apr 2016 15:07, Pedro Alves wrote:
> On 04/14/2016 01:28 PM, Yury Gribov wrote:
> > Thanks, this sounds as a general problem with visibility enabling.  Is
> > there some (relatively straightforward) way to find all used symbols?
> > I'm afraid there'll be more than just _rl_*...
> 
> I don't know of one, other than a mass rebuild (which is something
> that I have never done myself).
> 
> A cheap proxy may be to look under /usr/bin /usr/lib etc. for
> binaries with DTNEEDED readline, and then compare all of readline's
> extern symbols with the binary binaries' set of extern symbols,
> check for overlap in symbols that are not prefixed "rl_".

good idea.  here's a scan on my system of all _rl_ symbols.
$ scanelf -qRygs '-^_rl.*' /bin/ /sbin/ /lib64/ /usr/lib64/ /usr/bin/ /usr/sbin/
_rl_malloc  
/usr/lib64/perl5/vendor_perl/5.22.0/x86_64-linux-thread-multi/auto/Term/ReadLine/Gnu/Gnu.so
_rl_erase_entire_line,_rl_qsort_string_compare  /usr/bin/gdb

i would point out that these are the symbols libedit exports:
_rl_abort_internal,_rl_qsort_string_compare,_rl_print_completions_horizontally  
/usr/lib64/libedit.so.0.0.47
-mike

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to