Raphael Geissert writes:
> for f in /usr/lib/*so.*;
> do nm -DC "$f" | grep -q "U virtual thunk" && echo "$f is private"
> done
>
> Yields much better results
Still false positives here.
ea...@windlord:~$ for f in /usr/lib/*so.*;
> do nm -DC "$f" | grep -q "U virtual thunk" && echo "$f is p
Russ Allbery wrote:
> Raphael Geissert writes:
>> So far I've came up with:
>>
>> for f in /usr/lib/*so.*; do
>> nm -DC "$f" | grep -q " virtual thunk" && echo "$f is private"
>> done
>>
>> Which seems to give good results. It is based on the assumption that
>> plugins use/implement virtual func
Raphael Geissert writes:
> Sure, that's ok. I forgot about mangled symbols, nm should be called
> with -DC, not just -D.
Oh, I didn't know about that option.
> So far I've came up with:
>
> for f in /usr/lib/*so.*; do
> nm -DC "$f" | grep -q " virtual thunk" && echo "$f is private"
> done
>
>
Russ Allbery wrote:
> Raphael Geissert writes:
>
>> It was basically that; requiring [^_] because some libs incorrectly
>> export symbols that should not be exported (i.e. private). The
>> assumption is that if no public symbol is exported then it is a
>> plugin.
>
> Don't plugins have to export
Raphael Geissert writes:
> It was basically that; requiring [^_] because some libs incorrectly
> export symbols that should not be exported (i.e. private). The
> assumption is that if no public symbol is exported then it is a
> plugin.
Don't plugins have to export symbols, though? All PAM modul
On Sunday 26 April 2009 22:16:51 Russ Allbery wrote:
> Raphael Geissert writes:
> > Given the current pollution of /usr/lib of private libs/plugins it
> > would be great if lintian warned about those.
> >
> > Probably something like the following (without the false positives and
> > based on objdu
Raphael Geissert writes:
> Given the current pollution of /usr/lib of private libs/plugins it
> would be great if lintian warned about those.
>
> Probably something like the following (without the false positives and
> based on objdump's output):
>
> for f in /usr/lib/*.so.* ; do
>nm -D "$f"
Package: lintian
Version: 2.2.9
Severity: wishlist
Hi,
Given the current pollution of /usr/lib of private libs/plugins it would be
great if lintian warned about those.
Probably something like the following (without the false positives and based
on objdump's output):
for f in /usr/lib/*.so.* ;
8 matches
Mail list logo