bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23534] ld.bfd: internal error from ldlang.c:6635


From: slyfox at inbox dot ru
Subject: [Bug ld/23534] ld.bfd: internal error from ldlang.c:6635
Date: Mon, 10 Sep 2018 23:29:33 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23534

Sergei Trofimovich <slyfox at inbox dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slyfox at inbox dot ru

--- Comment #7 from Sergei Trofimovich <slyfox at inbox dot ru> ---
I had a look at it in https://bugs.gentoo.org/663690#c19

TL;DR: Gentoo has two libbfd-2.30.0.so libraries with incompatible ABIs:
    /usr/lib/binutils/i686-pc-linux-gnu/2.30/libbfd-2.30.0.so
and
    /usr/lib/libbfd-2.30.0.so
One of them is built --enable-64-bit-bfd, then other is not. Unfortunately the
have the same SONAME and the error is subtle.

Normally it's not al issue as 'ld' uses private library at
    /usr/lib/binutils/i686-pc-linux-gnu/2.30/libbfd-2.30.0.so

Unfortunately cargo(rust?) uses LD_LIBRARY_PATH=/usr/lib environment when calls
gcc/ld and tricks ld into loading wrong (ABI-incompatible) library.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]