Statistics
| Branch: | Revision:

root / linux-user @ 5d5c9930

Name Size
  alpha
  arm
  cris
  i386
  m68k
  microblaze
  mips
  mips64
  mipsn32
  ppc
  sh4
  sparc
  sparc64
  x86_64
cpu-uname.c 2.5 kB
cpu-uname.h 49 Bytes
elfload.c 75.9 kB
errno_defs.h 8.8 kB
flat.h 2.5 kB
flatload.c 25.5 kB
ioctls.h 15.9 kB
linux_loop.h 2.3 kB
linuxload.c 4.9 kB
m68k-sim.c 4.8 kB
main.c 105 kB
mmap.c 22.9 kB
qemu-types.h 595 Bytes
qemu.h 13.7 kB
signal.c 139.9 kB
socket.h 5 kB
strace.c 33.3 kB
strace.list 46.5 kB
syscall.c 225 kB
syscall_defs.h 72.5 kB
syscall_types.h 5.4 kB
uaccess.c 1.6 kB
vm86.c 15.2 kB

Latest revisions

# Date Author Comment
5d5c9930 07/29/2010 07:54 pm Richard Henderson

linux-user: Protect against allocation failure in load_symbols.

Cc: malc <>
Signed-off-by: Richard Henderson <>
Signed-off-by: malc <>

9955ffac 07/29/2010 09:32 am Richard Henderson

linux-user: Reduce lseek+reads while loading elf files.

Define BPRM_BUF_SIZE to 1k and read that amount initially. If the
data we want from the binary is in this buffer, use it instead of
reading from the file again.

Signed-off-by: Richard Henderson <>...

28490231 07/29/2010 09:32 am Richard Henderson

linux-user: Define ELF_DATA generically.

The only consideration on this value is the target endianness.
The existing defines were incorrect for alpha and sh4eb.

Signed-off-by: Richard Henderson <>
Signed-off-by: Edgar E. Iglesias <>

991f8f0c 07/29/2010 09:32 am Richard Henderson

linux-user: Clean up byte-swapping in elfload.c.

Remove ifdefs from code by defining empty inline functions
when byte swapping isn't needed. Push loops over swapping
arrays of structures into the swapping functions.

Signed-off-by: Richard Henderson <>...

682674b8 07/29/2010 09:32 am Richard Henderson

linux-user: Load symbols from the interpreter.

First, adjust load_symbols to accept a load_bias parameter. At the same
time, read the entire section header table in one go, use pread instead
f lseek+read for the symbol and string tables, and properly free...

9058abdd 07/29/2010 09:32 am Richard Henderson

linux-user: Improve consistency checking in elf headers.

Validate more fields of the elf header. Extract those checks
into two common functions to be used in both load_elf_interp
and load_elf_binary.

Signed-off-by: Richard Henderson <>
Signed-off-by: Edgar E. Iglesias <>

60dcbcb5 07/29/2010 09:32 am Richard Henderson

linux-user: Put the stack guard page at the top.

There are no supported stack-grows-up targets. We were putting
the guard page at the highest address, i.e. the bottom of the stack.
Use the maximum of host and guest page size for the guard size.

Signed-off-by: Richard Henderson <>...

b9329d4b 07/29/2010 09:32 am Richard Henderson

linux-user: Remove partial support for a.out interpreters.

At the bottom of the a.out support was the unimplemented load_aout_interp
function. There were other portions of the support that didn't look
right; when I went to look in the Linux kernel for clarification, I found...

8e62a717 07/29/2010 09:32 am Richard Henderson

linux-user: Extract load_elf_image from load_elf_interp.

Moving toward a single copy of the elf binary loading code.
Fill in the details of the loaded image into a struct image_info.

Adjust create_elf_tables to read from such structures instead
of from a collection of passed arguments. Don't return error...

bf858897 07/29/2010 09:32 am Richard Henderson

linux-user: Re-use load_elf_image for the main binary.

This requires moving the PT_INTERP extraction and GUEST_BASE
handling into load_elf_image. Key this off a non-null pointer
argument to receive the interpreter name.

Signed-off-by: Richard Henderson <>...

View revisions

Also available in: Atom