Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 216864 - ldd -u gives false positives on x86_64
ldd -u gives false positives on x86_64
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-11-22 08:47 EST by Arjan van de Ven
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-22 15:47:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Arjan van de Ven 2006-11-22 08:47:08 EST
Description of problem:

[root@benny tmp]# cat test.c
#include <stdio.h>

void main()
        printf("hello world\n");
[root@benny tmp]# make test
cc     test.c   -o test
[root@benny tmp]# ldd -u test
Unused direct dependencies:

(minimal testcase; this happens with a real big program as well)

ldd -u somehow doesn't think any of the direct dependencies are used even though
they really are...
Comment 1 Jakub Jelinek 2006-11-22 15:31:41 EST
Use ldd -u -r if you want to take into account also PLT relocations.
I agree ldd -u alone doesn't make much sense, but if I remember well that's
to much Solaris ldd behavior.
Comment 2 Ulrich Drepper 2006-11-22 15:47:11 EST
Indeed, this functionality is modelled after the Solaris version.  There are
situations conceivable where -u without -r might be useful.  It won't be
changed, learn to live with it.

Note You need to log in before you can comment on or make changes to this bug.