[Bug dynamic-link/32508] ldd: /lib/ld-linux.so.2: cannot execute binary file: Exec format error

fweimer at redhat dot com sourceware-bugzilla@sourceware.org
Mon Dec 30 11:18:19 GMT 2024


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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
It's odd to have a 32-bit glibc installed and not have kernel support.

It looks like this comes from sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed:

s_^\(RTLDLIST=\)\(.*lib\)\(\|64\|x32\)\(/[^/]*\)\(-x86-64\|-x32\)\(\.so\.[0-9.]*\)[
    ]*$_\1"\2\4\6 \264\4-x86-64\6 \2x32\4-x32\6"_

I think changing the order will avoid the error because the x86-64 loader is
tried first:

s_^\(RTLDLIST=\)\(.*lib\)\(\|64\|x32\)\(/[^/]*\)\(-x86-64\|-x32\)\(\.so\.[0-9.]*\)[
    ]*$_\264\4-x86-64\6 \1"\2\4\6 \2x32\4-x32\6"_

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


More information about the Glibc-bugs mailing list