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(-)