summaryrefslogtreecommitdiff
path: root/scripts/xldd.in
AgeCommit message (Collapse)AuthorFilesLines
2017-04-13Doc renames & issue templateAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20Cross-ldd: handling e_flags is tricky and depends on archAlexey Neyman1-9/+77
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-15Check libraries for compatibilityAlexey Neyman1-2/+54
... as we are going through various multilibs in ld.so.conf Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman1-4/+3
This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
2017-02-27Revert "Fix breakage from sed_r change in some auxiliary scripts"Alexey Neyman1-6/+6
This reverts commit 5ea3f2967f105713ec0c707b4f3da9519912f9d0.
2017-02-16Fix breakage from sed_r change in some auxiliary scriptsAlexey Neyman1-6/+6
... do not overquote the variables from paths.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-14Determine whether -E/-r option selects extended regexpAlexey Neyman1-3/+4
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-17consistency: Use exported variables of required toolsBryan Hundven1-2/+2
We check for apps: * make * sed * grep * awk * libtool/libtoolize * install * patch * and more ...during configure. Our scripts should be consistent about using the variables that define where the found tool was found. Of course, we do hard-link these tools in buildtools, but that should be a backup for the components we are building. Our scripts should always use the tools we find. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13file modes: Set files to be non-executableBryan Hundven1-0/+0
I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2012-12-05scripts/xldd: use user's sed and grepYann E. MORIN"1-2/+2
xldd uses sed and grep as detected by ./configure. This works well if is used on the machine that build the toolchain. But if the user moves the toolchain to another machine where sed and grep are not in the same directory (eg. /bin/sed vs. /usr/bin/sed), then xldd will stop functionning. Fix that by using ${SED} and ${GREP} if they are set in the environment. Reported-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-07scripts/xldd: fix debug output layoutYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-02scripts/xldd: fix pattern matching with new binutilsYann E. MORIN"1-3/+3
New binutils (circa 2.2x?) append 'program interpreter' to the (NEEDED) line for the dynamic linker, which breaks our current pattern. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-03-06docs: update my e-mailYann E. MORIN"1-1/+1
Since anciens.enib.fr has been dead for two months now, without any hope of recovery, update my e-mail to point to @free.fr instead. Reported-by: "Bryan Hundven" <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2011-07-12scripts/xldd: fix missing arg to one printfYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-10scripts/xldd: don't pass random format to printfYann E. MORIN"1-19/+19
Although proabaly inoffensive in our case, do not pass un-checked formats to printf. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-10scripts/xldd: print end of current actionYann E. MORIN"1-1/+13
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-10scripts/xldd: fix typoYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-11-24scripts/xldd: try to handle RPATH tagsYann E. MORIN"1-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>
2010-11-23scripts/xldd: better handle the origin of the libraryYann E. MORIN"1-36/+37
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-11-24scripts/xldd: avoid reporting duplicatesYann E. MORIN"1-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>
2010-11-23script/xldd: add debug tracesYann E. MORIN"1-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>
2010-11-23scripts/xldd: parse /etc/ld.so.confYann E. MORIN"1-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>
2010-11-23scripts/xldd: better find sysroot with old gccYann E. MORIN"1-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>
2010-11-23scripts/xldd: report appropriate load address for 32- or 64-bitYann E. MORIN"1-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>
2010-11-23scripts/xldd: stop at first matchYann E. MORIN"1-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>
2010-11-23scripts/xldd: fix version stringYann E. MORIN"1-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>
2010-11-23scripts/xldd: fix typoesYann E. MORIN"1-2/+2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-07-22scripts: add a cross-ldd-likeYann E. MORIN"1-0/+214
Add a cross-ldd that mimicks a native ldd.