https://sourceware.org/bugzilla/show_bug.cgi?id=27360
--- Comment #17 from Toolybird <toolybird at tuta dot io> --- Just wanted to mention that while this libctf bug is still present, gcc-11 has been released which now ships a libiberty that includes bsearch_r() This means that building binutils with: 1. --enable-shared 2. --prefix=/usr 3. a system installed copy of libiberty.a (from gcc-11) results in functional binaries again. This is despite the fact that libctf is still (re)linking against the wrong libiberty.a -L/build/binutils/pkg/binutils/usr/lib -L/usr/lib <--- problem is here -lbfd -L/build/binutils/src/binutils-build/bfd/../libiberty/pic -L/build/binutils/src/binutils-build/libctf/../libiberty/pic -liberty -- You are receiving this mail because: You are on the CC list for the bug.