This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21488] New: ldd --unused seems to have opposite from stated behavior
- From: "razi at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 12 May 2017 19:42:24 +0000
- Subject: [Bug libc/21488] New: ldd --unused seems to have opposite from stated behavior
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21488
Bug ID: 21488
Summary: ldd --unused seems to have opposite from stated
behavior
Product: glibc
Version: 2.26
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: razi at google dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Hi,
ldd -u (--unused) should "print unused direct dependencies". Running ldd -u on
an example binary claims to print list of "unused direct dependencies".
However, this list coincides exactly with objdump -p <binary > | grep NEEDED,
which makes me think that it is printing the list of actual direct
dependencies, as opposed to its complement.
See below:
$ ldd --unused static-build/linux-generic-amd64/wkhtmltox/bin/wkhtmltopdf
Unused direct dependencies:
/usr/lib/x86_64-linux-gnu/libXrender.so.1
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
/usr/lib/x86_64-linux-gnu/libfreetype.so.6
/usr/lib/x86_64-linux-gnu/libXext.so.6
/usr/lib/x86_64-linux-gnu/libX11.so.6
/lib/x86_64-linux-gnu/libdl.so.2
/lib/x86_64-linux-gnu/librt.so.1
/lib/x86_64-linux-gnu/libm.so.6
/lib/x86_64-linux-gnu/libgcc_s.so.1
/lib64/ld-linux-x86-64.so.2
$ objdump -p static-build/linux-generic-amd64/wkhtmltox/bin/wkhtmltopdf | grep
NEEDED
NEEDED libXrender.so.1
NEEDED libfontconfig.so.1
NEEDED libfreetype.so.6
NEEDED libXext.so.6
NEEDED libX11.so.6
NEEDED libdl.so.2
NEEDED librt.so.1
NEEDED libpthread.so.0
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so.6
NEEDED ld-linux-x86-64.so.2
<http://man7.org/linux/man-pages/man1/ldd.1.html>
--
You are receiving this mail because:
You are on the CC list for the bug.