2011-01-02binutils/binutils: add support for plugins
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Jan 2011 13:56:05 +0100] rev 2245
binutils/binutils: add support for plugins

Add an option to enable plugins support in binutils.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-28binutils/binutils: add option to enable gold
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Dec 2010 00:11:33 +0100] rev 2244
binutils/binutils: add option to enable gold

gold is a new, optimised, multi-threaded linker with support
for plugins.

Add support for gold starting with binutils 2.21. Although 2.20
also had gold, the configure flags have changed, and supporting
2.20 would be a mess in the code.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-28binutils/binutils: add BINUTILS_2_21_or_later blind option
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Dec 2010 19:07:21 +0100] rev 2243
binutils/binutils: add BINUTILS_2_21_or_later blind option

Add BINUTILS_2_21_or_later blind option. It will be used to add
conditional support for building 'gold' on versions that have it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-29complibs/libelf: build with -fPIC
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 29 Dec 2010 02:34:18 +0100] rev 2242
complibs/libelf: build with -fPIC

libelf is used by gcc to build the lto-plugin used
by binutils' gold to perform LTO.

This requires that files in libelf be compiled with
-fPIC to generate a proper .so.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-01-03debug/gdb: fix for psim build failure due to -lz in gdb-7.2.
Horst Kronstorfer <horst.kronstorfer@aon.at> [Mon, 03 Jan 2011 19:07:34 +0100] rev 2241
debug/gdb: fix for psim build failure due to -lz in gdb-7.2.

Signed-off-by: "Horst Kronstorfer" <horst.kronstorfer@aon.at>
[yann.morin.1998@anciens.enib.fr: fix space-damage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-01-02samples: update after libc versions renaming
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Jan 2011 22:32:04 +0100] rev 2240
samples: update after libc versions renaming

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-01-02libc/eglibc: normalize eglibc hidden version names
Bryan Hundven <bryanhundven@gmail.com> [Sun, 02 Jan 2011 22:33:04 +0100] rev 2239
libc/eglibc: normalize eglibc hidden version names

In the previous patches to glibc and uclibc, we standardized on hidden
version names:

LIBC_<LIBC NAME>_V_<VERSION>

This patch updates EGLIBC to be the same for consistency to:

LIBC_EGLIBC_V_<VERSION>

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2011-01-03libc/uClibc: normalize uclibc hidden version names
Bryan Hundven <bryanhundven@gmail.com> [Mon, 03 Jan 2011 01:15:30 +0100] rev 2238
libc/uClibc: normalize uclibc hidden version names

Hidden version names for uClibc conflicted:

LIBC_UCLIBC_V_0_9_30_2
LIBC_V_0_9_30_1

name them constantly as:
LIBC_UCLIBC_V_<version>

Also update the build script where we use snapshots by version or snapshots by date.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2011-01-02libc/glibc: normalize glibc hidden version names
Bryan Hundven <bryanhundven@gmail.com> [Sun, 02 Jan 2011 22:32:48 +0100] rev 2237
libc/glibc: normalize glibc hidden version names

Hidden version names for glibc conflicted:

LIBC_GLIBC_V_2.10.1
LIBC_V_2.10

name them constantly as:
LIBC_GLIBC_V_<version>

Reported-by: Esben Haabendal <eha@doredevelopment.dk>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2010-12-29internals: properly remove all docs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 29 Dec 2010 19:41:17 +0100] rev 2236
internals: properly remove all docs

Part of the installed doc was not removed (if configured to).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-29libc/glibc: add 2.12.1 and 2.12.2
Heiko Zuerker <heiko@zuerker.org> [Wed, 29 Dec 2010 19:34:53 +0100] rev 2235
libc/glibc: add 2.12.1 and 2.12.2

Signed-off-by: Heiko Zuerker <heiko@zuerker.org>

2010-12-29libc/eglibc: remove obsolete patch
Chih-Min Chao <cmchao@gmail.com> [Wed, 29 Dec 2010 12:40:36 +0100] rev 2234
libc/eglibc: remove obsolete patch

That patch has been applied upstream as r8690.

Signed-off-by: Chih-Min Chao <cmchao@gmail.com>

2010-12-29cc/gcc: Add gcc 4.5.2
Bryan Hundven <bryanhundven@gmail.com> [Wed, 29 Dec 2010 02:00:21 +0100] rev 2233
cc/gcc: Add gcc 4.5.2

Add gcc 4.5.2.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2010-12-22libc/eglibc: fix installed scripts 1.9
Bryan Hundven <bryanhundven@gmail.com> [Wed, 22 Dec 2010 22:42:11 +0100] rev 2232
libc/eglibc: fix installed scripts

Like rev 2002, eglibc installs some bash scripts, but use the path to the
buildtool bash as the interpreter (on the shebang line). This is only a
symlink to the real bash, and thus is not available at runtime.

Fix that by assuming that shell on the target *will* be /bin/bash.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
(transplanted from 6884dcb80121ebc8ce17deee62716ed75fc29393)

2010-12-18config: fix the patch fallbacks methods 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 18 Dec 2010 23:08:12 +0100] rev 2231
config: fix the patch fallbacks methods

Reported-by: Heiko Zuerker <heiko@zuerker.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from e48654bf7e49d2ee40fec5fbbdaf00440329ee5f)

2010-12-22patches/eglibc: remove 100-powerpc-private_futex.patch from trunk
Bryan Hundven <bryanhundven@gmail.com> [Wed, 22 Dec 2010 22:42:28 +0100] rev 2230
patches/eglibc: remove 100-powerpc-private_futex.patch from trunk

100-powerpc-private_futex.patch no longer applies to eglibc trunk.
This patch was submitted upstream in trunk.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2010-12-22libc/eglibc: fix installed scripts
Bryan Hundven <bryanhundven@gmail.com> [Wed, 22 Dec 2010 22:42:11 +0100] rev 2229
libc/eglibc: fix installed scripts

Like rev 2002, eglibc installs some bash scripts, but use the path to the
buildtool bash as the interpreter (on the shebang line). This is only a
symlink to the real bash, and thus is not available at runtime.

Fix that by assuming that shell on the target *will* be /bin/bash.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2010-12-22kernel/linux: Cleanup unneeded files from 'headers_check' and 'headers_install'
Bryan Hundven <bryanhundven@gmail.com> [Wed, 22 Dec 2010 22:41:51 +0100] rev 2228
kernel/linux: Cleanup unneeded files from 'headers_check' and 'headers_install'

headers_install makes .install and ..install.cmd files.
headers_check makes .check and ..check.cmd files.
Remove these files uncoditionaly after installing (and checking) header files
into the sys-root.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[Yann E. MORIN: reformat the patch, move hunk out of headers_check conditional]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-22docs: overview.txt is gone, point to the new documentation
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 22 Dec 2010 00:34:56 +0100] rev 2227
docs: overview.txt is gone, point to the new documentation

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-14config/binutils: Add binutils 2.21
Bryan Hundven <bryanhundven@gmail.com> [Tue, 14 Dec 2010 11:49:18 -0800] rev 2226
config/binutils: Add binutils 2.21

Currently depends on EXPERIMENTAL, as it is not well tested and I'm
not sure if/which patches need to be ported forward from 2.20.1.

2010-12-18config: fix the patch fallbacks methods
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 18 Dec 2010 23:08:12 +0100] rev 2225
config: fix the patch fallbacks methods

Reported-by: Heiko Zuerker <heiko@zuerker.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-19scripts: add doc for patch-rework
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 19 Dec 2010 11:57:08 +0100] rev 2224
scripts: add doc for patch-rework

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-18scripts: update config.{sub,guess}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 18 Dec 2010 23:29:46 +0100] rev 2223
scripts: update config.{sub,guess}

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-18kernel/linux: fix help for 2.6.35.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 18 Dec 2010 21:35:09 +0100] rev 2222
kernel/linux: fix help for 2.6.35.10

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-17kernel/linux: bump to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 17 Dec 2010 23:48:15 +0100] rev 2221
kernel/linux: bump to latest versions

- add 2.6.36.2.
- bump to 2.6.35.10, which is a new longterm.
- bump to 2.6.32.27 and 2.6.27.57, the two old longterms.
- update longterm descriptions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-131.9: update version to 1.9.1+hg 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 13 Dec 2010 23:25:43 +0100] rev 2220
1.9: update version to 1.9.1+hg

2010-12-13Tagging release 1.9.1 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 13 Dec 2010 23:25:43 +0100] rev 2219
Tagging release 1.9.1

2010-12-131.9: update version to 1.9.1 1.9 crosstool-ng-1.9.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 13 Dec 2010 23:25:43 +0100] rev 2218
1.9: update version to 1.9.1

2010-12-03complibs/libelf: use host compiler 1.9
Kalle Kankare <kalle.kankare@vincit.fi> [Fri, 03 Dec 2010 12:36:44 +0100] rev 2217
complibs/libelf: use host compiler

It appears, that the configure scripts of libelf versions 0.8.13 and
0.8.12 do not honour the --host option. The compiler must be given as an
environment variable or the process will use the command "gcc" as the
compiler.

It seems that this is already done in the function do_libelf_target in
scripts/build/companion_libs/libelf.sh, but not in function do_libelf.
(transplanted from 81b4c0efa46f757b89c150f66e09615ee7c0f5a4)

2010-12-03complibs/libelf: use host compiler
Kalle Kankare <kalle.kankare@vincit.fi> [Fri, 03 Dec 2010 12:36:44 +0100] rev 2216
complibs/libelf: use host compiler

It appears, that the configure scripts of libelf versions 0.8.13 and
0.8.12 do not honour the --host option. The compiler must be given as an
environment variable or the process will use the command "gcc" as the
compiler.

It seems that this is already done in the function do_libelf_target in
scripts/build/companion_libs/libelf.sh, but not in function do_libelf.

2010-12-12libc: hide no-thread for those C libraries that do not support it
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Dec 2010 22:18:52 +0100] rev 2215
libc: hide no-thread for those C libraries that do not support it

Building non-threaded glibc has been unsupported for a long time, now:
http://sourceware.org/ml/libc-alpha/2005-08/msg00091.html

As eglibc is a spin-off of glibc: ditto.

So do not offer that possibility in the menuconfig.
Thanks to Thomas Petazzoni for spotting, and helping to solve, the issue!

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-12internals: fix stripping
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Dec 2010 20:47:40 +0100] rev 2214
internals: fix stripping

Do not try to strip any script.

Previously, only shell scripts were ignored, but when the Java frontend
is installed, it also installs a Python script. So we have to ignore
any "script text executable", and not restrict it to "shell script text
executable".

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-05scripts/internals: strip all executables
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 05 Dec 2010 16:27:06 +0100] rev 2213
scripts/internals: strip all executables

Using a list of files to strip misses a few of them.
Now, scan appropriate directories, and strip all ELF
executables and shared objects.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09cc/gcc: build bare-metal gcc statically
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:55:59 +0100] rev 2212
cc/gcc: build bare-metal gcc statically

- add a new parameter to do_cc_core: build_statically=[yes|no]
- pass build_statically=yes in core_pass_2 when doing bare_metal
- fix handling the static / static libstdc++ / static complibs stuff
- add a commment to keep both blocks (in core and final) in sync

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09cc/gcc: build final gcc statically
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:55:42 +0100] rev 2211
cc/gcc: build final gcc statically

If the global static option is set, then build the final gcc statically.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09binutils/binutils: build statically
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:55:33 +0100] rev 2210
binutils/binutils: build statically

If the global static option is set, then build binutils statically.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09debug/gdb: global static forces static cross-gdb
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 09 Dec 2010 18:55:15 +0100] rev 2209
debug/gdb: global static forces static cross-gdb

If the global static option is set, then build host binutils statically.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09complibs: do not prompt for shared libs if static selected
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:54:46 +0100] rev 2208
complibs: do not prompt for shared libs if static selected

If the global static toolchain option is selected, then do not
prompt the user whether to build shared companion libraries.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09config: add option to build statically linked toolchain
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:54:37 +0100] rev 2207
config: add option to build statically linked toolchain

Add a config option to statically build the host tools.
Impacted tools can use that option to decide wether to build
statically or shared.

For now, no tool uses it, but they'll be added one at a time
in the next commits.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-29complibs/cloog: fix linking with libstdc++
Bill Pringlemeir <bpringle@sympatico.ca> [Mon, 29 Nov 2010 00:50:21 +0100] rev 2206
complibs/cloog: fix linking with libstdc++

This rules out 0.15.5 and previous versions, that did not
have this option, so remove them from the list. Anyway,
they were marked 'OBSOLETE', so it's not a big loss...

[Yann E. MORIN: remove obsolete versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-29scripts: recover on partially downloaded files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Nov 2010 00:26:39 +0100] rev 2205
scripts: recover on partially downloaded files

Download to an intermediate temp file, and rename it to its final
name only of download succeeds.

This catches both a failed download, and also the case where the user
interrupts the download. Thus, the a partial download gets discarded,
and we no longer try to extract a partial tarball, which we would
previously have done.

Suggested by Thomas PETAZZONI.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-16scripts: call curl and wget in sequence
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 16 Nov 2010 17:49:15 +0100] rev 2204
scripts: call curl and wget in sequence

It can happen, in some circumpstances, than one can succeed where
the other would fail. Those cases involves convoluted enterprise
networks with proxies playing tricks.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-16scripts: remove aria2c as downloader, retain only curl and wget
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 16 Nov 2010 10:00:27 +0100] rev 2203
scripts: remove aria2c as downloader, retain only curl and wget

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-13cc/gcc: fix pr42289: incorrect alignment on OABI
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 13 Nov 2010 23:26:21 +0100] rev 2202
cc/gcc: fix pr42289: incorrect alignment on OABI

Fix building libffi on OABI.
Although it has been marked as 4.3-only, it is stil not fixed,
and also applies to 4.4.x

See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42289

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-13cc/gcc: 4.4.5, add arm-softfloat-libgcc patch from buildroot
Bryan Hundven <bryanhundven@gmail.com> [Sat, 13 Nov 2010 14:23:36 +0100] rev 2201
cc/gcc: 4.4.5, add arm-softfloat-libgcc patch from buildroot

Reported-by: M P <buserror@gmail.com>
[Yann E. MORIN: add the patch to other 4.4.x]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-24kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 23:10:55 +0100] rev 2200
kernel/linux: add latest versions

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-10-18complibs/CLooG: only install the libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 18 Oct 2010 16:51:01 +0200] rev 2199
complibs/CLooG: only install the libraries

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: better find sysroot with old gcc 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:28 +0100] rev 2198
scripts/xldd: better find sysroot with old gcc

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>
(transplanted from aa2305c5b2a57fbcda9a1b5bb5fb3a476ac49a13)

2010-11-23scripts/xldd: stop at first match 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:10 +0100] rev 2197
scripts/xldd: stop at first match

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>
(transplanted from 78d2f99d403f7092203fc7a119ec19f9a2108afa)

2010-11-23scripts/xldd: fix version string 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:56 +0100] rev 2196
scripts/xldd: fix version string

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>
(transplanted from e826624966a1672422711f779d98686e03a30b90)

2010-11-23scripts/xldd: fix typoes 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:50 +0100] rev 2195
scripts/xldd: fix typoes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from dbecd99ecba51980ec9938b1313effeb45ef2ce7)

2010-11-23scripts/xldd: install only when shared libs enabled 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:24 +0100] rev 2194
scripts/xldd: install only when shared libs enabled

When the toolchain has no support for shared libraries, there is no
point in installing the cross-ldd helper.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 032ae3253a655d859f25a5c2bac1b72051f950b0)

2010-11-24scripts/xldd: try to handle RPATH tags
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 21:04:55 +0100] rev 2193
scripts/xldd: try to handle RPATH tags

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 library
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:36:01 +0100] rev 2192
scripts/xldd: better handle the origin of the library

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-24scripts/xldd: avoid reporting duplicates
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 21:01:46 +0100] rev 2191
scripts/xldd: avoid reporting duplicates

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 traces
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:45 +0100] rev 2190
script/xldd: add debug traces

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.conf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:41 +0100] rev 2189
scripts/xldd: parse /etc/ld.so.conf

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 gcc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:28 +0100] rev 2188
scripts/xldd: better find sysroot with old gcc

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-bit
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:15 +0100] rev 2187
scripts/xldd: report appropriate load address for 32- or 64-bit

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 match
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:10 +0100] rev 2186
scripts/xldd: stop at first match

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>