Skip to content

Clean up linux-user/elfload.c

Richard Henderson qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 10 repliesIn review
  2. v112 patches 0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12linux-user: Handle filesz < memsz for any PT_LOAD segment.linux-user/elfload.c+55 -970 replies
2/12Add more DT_* and AT_* constants to qemu's copy of elf.h.elf.h linux-user/elfload.c+44 -90 replies
3/12linux-user: Reindent elfload.c.linux-user/elfload.c+518 -5100 replies
4/12linux-user: Reduce lseek+reads while loading elf files.linux-user/elfload.c linux-user/linuxload.c linux-user/qemu.h+57 -710 replies
5/12linux-user: Define ELF_DATA generically.linux-user/elfload.c+6 -240 replies
6/12linux-user: Clean up byte-swapping in elfload.c.linux-user/elfload.c+48 -710 replies
7/12linux-user: Load symbols from the interpreter.linux-user/elfload.c+101 -885 replies
8/12linux-user: Improve consistency checking in elf headers.linux-user/elfload.c+33 -240 replies
9/12linux-user: Put the stack guard page at the top.linux-user/elfload.c+17 -140 replies
10/12linux-user: Remove partial support for a.out interpreters.linux-user/elfload.c+9 -700 replies
11/12linux-user: Extract load_elf_image from load_elf_interp.linux-user/elfload.c+167 -1742 replies
12/12linux-user: Re-use load_elf_image for the main binary.linux-user/elfload.c+103 -2770 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH 00/12 v4] Clean up linux-user/elfload.c

A re-based and re-tested version of a patch series I posted back in April and May. These cleanups prepare elfload.c for loading the VDSO for x86_64.

r~

Richard Henderson (12):
linux-user: Handle filesz < memsz for any PT_LOAD segment. Add more DT_* and AT_* constants to qemu's copy of elf.h.
linux-user: Reindent elfload.c.
linux-user: Reduce lseek+reads while loading elf files.
linux-user: Define ELF_DATA generically.
linux-user: Clean up byte-swapping in elfload.c.
linux-user: Load symbols from the interpreter.
linux-user: Improve consistency checking in elf headers.
linux-user: Put the stack guard page at the top.
linux-user: Remove partial support for a.out interpreters.
linux-user: Extract load_elf_image from load_elf_interp.
linux-user: Re-use load_elf_image for the main binary.

 elf.h                  |   44 ++
 linux-user/elfload.c   | 1791 ++++++++++++++++++++----------------------------
 linux-user/linuxload.c |   17 +-
 linux-user/qemu.h      |    7 +-
 4 files changed, 794 insertions(+), 1065 deletions(-)