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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
With ranlib, only hppa-linux-gnu-ranlib fails with "File format not
recognized".  The ranlib command works.

dave@mx3210:~/gnu/gcc/objdir/build-hppa-linux-gnu/libcpp$ cmp libcpp.a.save
libcpp.a
dave@mx3210:~/gnu/gcc/objdir/build-hppa-linux-gnu/libcpp$ hppa-linux-gnu-ranlib
libcpp.a
hppa-linux-gnu-ranlib: libcpp.a: File format not recognized
dave@mx3210:~/gnu/gcc/objdir/build-hppa-linux-gnu/libcpp$ ranlib libcpp.a
dave@mx3210:~/gnu/gcc/objdir/build-hppa-linux-gnu/libcpp$ 

The difference seems to be hppa-linux-gnu-ranlib is linked against
libbfd-2.27-system.so and ranlib is linked against libbfd-2.27-multiarch.so:

dave@mx3210:/usr/bin$ ldd hppa-linux-gnu-ranlib
        libbfd-2.27-system.so => /usr/lib/hppa-linux-gnu/libbfd-2.27-system.so
(0xfd20c000)
        libz.so.1 => /lib/hppa-linux-gnu/libz.so.1 (0xfcfb8000)
        libdl.so.2 => /lib/hppa-linux-gnu/libdl.so.2 (0xfcbf8000)
        libc.so.6 => /lib/hppa-linux-gnu/libc.so.6 (0xfc7f8000)
        /lib/ld.so.1 (0x41000000)
dave@mx3210:/usr/bin$ ldd ranlib
        libbfd-2.27-multiarch.so =>
/usr/lib/hppa-linux-gnu/libbfd-2.27-multiarch.so (0xfcffb000)
        libz.so.1 => /lib/hppa-linux-gnu/libz.so.1 (0xfcfb8000)
        libdl.so.2 => /lib/hppa-linux-gnu/libdl.so.2 (0xfcbf8000)
        libc.so.6 => /lib/hppa-linux-gnu/libc.so.6 (0xfc7f8000)
        /lib/ld.so.1 (0x41000000)

Somehow, I think 32 and 64-bit targets are getting mixed up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to