| Branch: | Revision:

root / linux-user / linuxload.c @ 93148aa5

History | View | Annotate | Download (4.5 kB)

# Date Author Comment
7dd47667 11/11/2011 08:49 pm Peter Maydell

linux-user/elfload.c: Don't memset(NULL..) if malloc() failed

If a malloc() in copy_elf_strings() failed we would call memset()
before the "did malloc fail?" check. Fix this by moving to the
glib alloc/free routines for this memory so we can use g_try_malloc0...

331c23b5 06/21/2011 08:30 pm Juan Quintela

linuxload: id_change was a write only variable

Signed-off-by: Juan Quintela <>
Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

67af42ac 01/07/2011 06:20 pm Wolfgang Schildbach

Remove dead code for ARM semihosting commandline handling

There are some bits in the code which were used to store the commandline for
the semihosting call. These bits are now write-only and can be removed.

Signed-off-by: Wolfgang Schildbach <>...

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 <>...

6495a044 04/25/2010 03:59 pm Richard Henderson

linux-user: Remove ELFLOAD32.

The ABI-specific types used by linux_binprm and image_info
are different after forcing TARGET_ABI32 on. Which means
that the parameters that load_elf_binary_multi sees are not
those that loader_exec passed. This is inherently broken...

e2cc3f6e 10/16/2009 02:36 pm Paul Bolle

linux-user: don't zero a buffer twice

prepare_binprm() zeroes bprm->buf. That buffer is already zeroed in
main() and hasn't been touched since so that is not necessary.

Signed-off-by: Paul Bolle <>
Signed-off-by: Riku Voipio <>

7cba04f6 08/01/2009 01:13 pm Blue Swirl

More NULL pointer fixes

Signed-off-by: Blue Swirl <>

edf8e2af 06/16/2009 04:56 pm Mika Westerberg

linux-user: implemented ELF coredump support for ARM target

When target process is killed with signal (such signal that
should dump core) a coredump file is created. This file is
similar than coredump generated by Linux (there are few exceptions

2f619698 11/16/2007 12:46 pm bellard

suppressed tgetx and tputx (initial patch by Thayne Harbaugh)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

579a97f7 11/11/2007 04:26 pm bellard

Linux user memory access API change (initial patch by Thayne Harbaugh)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

992f48a0 10/14/2007 07:27 pm blueswir1

Support for 32 bit ABI on 64 bit targets (only enabled Sparc64)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

cb33da57 10/09/2007 07:34 pm blueswir1

Support for executing 32 bit SPARC32PLUS files for Sparc64 user emulator

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

3b46e624 09/17/2007 11:09 am ths

find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5fafdf24 09/17/2007 12:08 am ths

find -type f | xargs sed -i 's/[\t ]$//g' # on most files

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

0458df24 06/03/2007 06:33 pm ths

Fix typo in comment.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

38d0662a 11/19/2006 10:29 pm pbrook

Arm semihosted commandline support (Wolfgang Schildbach).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

e5fe0c52 06/11/2006 04:32 pm pbrook

bFLT loader (for uClinux binaries).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162