[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1830415] [NEW] linux-user elf loader issue
From: |
antonio barbalace |
Subject: |
[Qemu-devel] [Bug 1830415] [NEW] linux-user elf loader issue |
Date: |
Fri, 24 May 2019 17:41:40 -0000 |
Public bug reported:
all versions up to 4.0 (I didn't test others)
file affected linux-user/elfload.c
function load_elf_image
if (phdr[i].p_type == PT_LOAD) {
- abi_ulong a = phdr[i].p_vaddr - phdr[i].p_offset;
+ abi_ulong a = phdr[i].p_vaddr ; // - phdr[i].p_offset;
if (a < loaddr) {
loaddr = a;
To the best of my understanding of the elf format p_offset is not a
virtual offset. In fact, when I load statically compiled applications,
the load fails because the libc before main is trying to access phdr in
the executable image but that memory is not mapped -- this is caused by
the wrong loaddr above.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1830415
Title:
linux-user elf loader issue
Status in QEMU:
New
Bug description:
all versions up to 4.0 (I didn't test others)
file affected linux-user/elfload.c
function load_elf_image
if (phdr[i].p_type == PT_LOAD) {
- abi_ulong a = phdr[i].p_vaddr - phdr[i].p_offset;
+ abi_ulong a = phdr[i].p_vaddr ; // - phdr[i].p_offset;
if (a < loaddr) {
loaddr = a;
To the best of my understanding of the elf format p_offset is not a
virtual offset. In fact, when I load statically compiled applications,
the load fails because the libc before main is trying to access phdr
in the executable image but that memory is not mapped -- this is
caused by the wrong loaddr above.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1830415/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [Bug 1830415] [NEW] linux-user elf loader issue,
antonio barbalace <=