kumquat-buildroot/package/binutils
Yann E. MORIN bb0164a8b1 package/binutils: switch from symlinks to copies to fix rpath
Commit f9cffb6af4 (binutils: replace hard-links with soft-links to fix
rpath) has a side effect that when we build for a noMMU target, elf2flt
will in turn replace some of the programs installed by binutils, with
its own wrappers.

For example, it will rename host/TUPLE/bin/ld to ld.real, and add its
own wrapper in place of the original. It does the same for
host/bin/TUPLE-ld and host/bin/TUPLE-ld.real.

However, we had already made ld a symlink to ../../bin/TUPLE-ld, so
host/TUPLE/bin/ld.real will still point to host/bin/TUPLE-ld when we
want it to point to ld.real instead...

This ultimately confuses gcc later on.

Of course, the culprit is also elf2flt, which also installs similar
hardlinks that would ultimately exhibit the same rpath issue as the
one fixed by f9cffb6af4. Note: we haven't had an issue so far with
that, because those tools installed by elf2flt only link with libz,
which is most often present on the host system. So, all seem well,
but is nonetheless broken; this will be fixed in a subsequent commit.

But back on topic. If we were to fix elf2flt with similar symlinks,
gcc still gets confused. The underlying reason for this confusion is
not entirely clear, though... It looks like something is trying to
dereference symlinks and gets confused by the result somehow...

So, in an attempt to restore some sanity in all this mess, we try to
restore the previous behaviour, we no longer use symlinks but just copy
the individual tools.

Fixes: #11031.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Christophe Priouzeau <christophe.priouzeau@st.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-05-28 22:33:47 +02:00
..
2.27 binutils: remove Blackfin patches 2018-04-15 22:05:28 +02:00
2.28.1 binutils: remove Blackfin patches 2018-04-15 22:05:28 +02:00
2.29.1 binutils: remove Blackfin patches 2018-04-15 22:05:28 +02:00
2.30 binutils: remove Blackfin patches 2018-04-15 22:05:28 +02:00
arc-2018.03-rc2 toolchain: Bump ARC tools to arc-2018.03-rc2 2018-05-28 14:48:19 +02:00
binutils.hash toolchain: Bump ARC tools to arc-2018.03-rc2 2018-05-28 14:48:19 +02:00
binutils.mk package/binutils: switch from symlinks to copies to fix rpath 2018-05-28 22:33:47 +02:00
Config.in
Config.in.host toolchain: Bump ARC tools to arc-2018.03-rc2 2018-05-28 14:48:19 +02:00