aboutsummaryrefslogtreecommitdiff
path: root/scripts/xldd.in
Commit message (Collapse)AuthorAgeFilesLines
* scripts/xldd: try to handle RPATH tagsYann E. MORIN"2010-11-241-3/+43
| | | | | | | | The RPATH tags allow a binary to tell the dynamic linker what directories to search for libraries. The so-added paths are searched into before any other paths. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: better handle the origin of the libraryYann E. MORIN"2010-11-231-36/+37
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: avoid reporting duplicatesYann E. MORIN"2010-11-241-5/+18
| | | | | | | Once a NEEDED dependency has been solved, do not report it if other dependencies depend on it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* script/xldd: add debug tracesYann E. MORIN"2010-11-231-1/+36
| | | | | | | Add debug traces to help understand how xldd finds the libraries, what directories it scans, in which order... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: parse /etc/ld.so.confYann E. MORIN"2010-11-231-1/+26
| | | | | | | Scan /etc/ld.so.conf for paths to search for libraries. Also follow include directives in there. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: better find sysroot with old gccYann E. MORIN"2010-11-231-1/+9
| | | | | | | | | | Only starting with 4.4 does gcc have a -print-sysroot option. For 4.3 or before, we have to play some tricks: - ask gcc where libc.so is, (we expect it in ${sysroot}/usr/lib/libc.so) - trim /usr/lib/libc.so from the result Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: report appropriate load address for 32- or 64-bitYann E. MORIN"2010-11-231-2/+3
| | | | | | | For 32-bit target systems, report 4-byte (8-xdigit) wide adresses, and for 64-bit, report 8-byte (16-xdigit) wide adresses. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: stop at first matchYann E. MORIN"2010-11-231-0/+2
| | | | | | | | | Break the library search loop as soon as a match is found. Previously, if a library was present in different places, then the last occurence would be returned, when the first one would have been used at runtime. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: fix version stringYann E. MORIN"2010-11-231-1/+2
| | | | | | | The version string was hard-coded. Now, the version string follows the crosstool-NG version. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts/xldd: fix typoesYann E. MORIN"2010-11-231-2/+2
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts: add a cross-ldd-likeYann E. MORIN"2010-07-221-0/+214
Add a cross-ldd that mimicks a native ldd.