[Top][All Lists]

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

Re: [qemu-s390x] [Qemu-devel] linux-user: s390x issue on Fedora 30 (dyna

From: Peter Maydell
Subject: Re: [qemu-s390x] [Qemu-devel] linux-user: s390x issue on Fedora 30 (dynamic library loader?)
Date: Mon, 19 Aug 2019 13:36:12 +0100

On Mon, 19 Aug 2019 at 13:22, David Hildenbrand <address@hidden> wrote:
> Thanks, running
> "ldconfig -c etc/ld.so.cache -r ."
> Seems to fix the issue for me. So you are sure the bug resides in glic
> and not in the qemu-user pieces of the library loader?

Pretty sure, yes. QEMU doesn't implement any of the dynamic loader:
it just loads the elf interpreter (ld.so) and the binary into
memory, and all dynamic loading is ld.so running as guest code
doing syscall. The problem IIRC is that ld.so just mmap()s
the ld.so.cache file in and wades through it:

and the magic-number checks are memcmp(), so the magic number
is the same for both big and little endian but the data structures
in the file are not endian-independent.

-- PMM

reply via email to

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