[PATCH v4 0/3] linux-user: Fix static armhf binaries and optmize memory layout

Helge Deller posted 3 patches 9 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230727070601.31383-1-deller@gmx.de
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Laurent Vivier <laurent@vivier.eu>
include/exec/cpu_ldst.h |  4 +--
linux-user/elfload.c    | 59 +++++++++++++----------------------------
linux-user/loader.h     | 12 +++++++++
linux-user/main.c       |  1 +
linux-user/mmap.c       | 14 +---------
linux-user/qemu.h       |  4 +--
linux-user/syscall.c    |  8 ++++--
7 files changed, 43 insertions(+), 59 deletions(-)
[PATCH v4 0/3] linux-user: Fix static armhf binaries and optmize memory layout
Posted by Helge Deller 9 months, 1 week ago
This patch series:
- fixes qemu-arm to run static armhf binaries
- shows address of heap in /proc/pid/maps output for all architectures
- optimizes address layout of loaded executable
- increases free heap for guest apps

NOTE:
- this patch series is for qemu v8.1.0-rc ONLY.
- do not apply on top of v8.0-stable series, as those use
  a different search algorithm for free mmap memory
  and thus will give improper memory layouts.

It can be pulled from here:
https://github.com/hdeller/qemu-hppa/tree/brk-fixes-2

Changes
v4:
- add note that patch series is for v8.1.0-rc only
- changed TASK_UNMAPPED_BASE for 32- on 64-bit userspace

Helge Deller (3):
  linux-user: Show heap address in /proc/pid/maps
  linux-user: Optimize memory layout for static and dynamic executables
  linux-user: Load pie executables at upper memory

 include/exec/cpu_ldst.h |  4 +--
 linux-user/elfload.c    | 59 +++++++++++++----------------------------
 linux-user/loader.h     | 12 +++++++++
 linux-user/main.c       |  1 +
 linux-user/mmap.c       | 14 +---------
 linux-user/qemu.h       |  4 +--
 linux-user/syscall.c    |  8 ++++--
 7 files changed, 43 insertions(+), 59 deletions(-)

--
2.41.0