Statistics
| Branch: | Revision:

root / linux-user / elfload.c @ feature-archipelago

History | View | Annotate | Download (87.7 kB)

# Date Author Comment
6afafa86 02/18/2014 04:54 pm Peter Maydell

linux-user/elfload.c: Avoid calling g_free() on uninitialized data

Avoid calling g_free() on unintialized data in the error-handling
paths in elf_core_dump() by splitting the initialization of the
elf_note_info struct out of fill_note_info() so that it's always...

f0116c54 01/10/2014 08:51 am Will Newton

linux-user: Remove regs parameter of load_elf_binary and load_flt_binary

The regs parameter is not used anywhere, so remove it.

Signed-off-by: Will Newton <>
Reviewed-by: Erik de Castro Lopo <>
Reviewed-by: Andreas Färber <>...

99033cae 09/10/2013 09:11 pm Alexander Graf

linux-user: Add AArch64 support

This patch adds support for AArch64 in all the small corners of
linux-user (primarily in image loading and startup code).

Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>...

bdc44640 09/03/2013 01:25 pm Andreas Färber

cpu: Use QTAILQ for CPU list

Introduce CPU_FOREACH(), CPU_FOREACH_SAFE() and CPU_NEXT() shorthand
macros.

Signed-off-by: Andreas Färber <>

a2247f8e 07/09/2013 10:33 pm Andreas Färber

linux-user: Change thread_env to CPUState

Signed-off-by: Andreas Färber <>

182735ef 07/09/2013 10:32 pm Andreas Färber

cpu: Make first_cpu and next_cpu CPUState

Move next_cpu from CPU_COMMON to CPUState.
Move first_cpu variable to qom/cpu.h.

gdbstub needs to use CPUState::env_ptr for now.
cpu_copy() no longer needs to save and restore cpu_next.

Acked-by: Paolo Bonzini <>...

0514ef2f 05/02/2013 01:27 am Eduardo Habkost

target-i386: Replace cpuid_*features fields with a feature word array

This replaces the feature-bit fields on both X86CPU and x86_def_t
structs with an array.

With this, we will be able to simplify code that simply does the same
operation on all feature words (e.g. kvm_check_features_against_host(),...

ca98ac83 04/18/2013 03:12 pm Paolo Bonzini

elfload: fix size of ABI-dependent fields in core dumps

Some fields in core dumps are 32-bit in 32-or-64 environments (ppc64abi32,
sparc32plus). Use abi_long/ulong for those.

Also, the fields of target_elf_siginfo are ints. Use tswap32 to convert them....

a29f998d 04/18/2013 03:12 pm Paolo Bonzini

elfload: fix size of registers for N32

Registers are 64-bit in size for the MIPS n32 ABI. Define
target_elf_greg_t accordingly, and use the correct function
to do endian swaps.

Reviewed-by: Peter Maydell <>
Signed-off-by: Paolo Bonzini <>...

86cd7b2d 04/18/2013 03:12 pm Paolo Bonzini

elfload: use tswapreg consistently in elf_core_copy_regs

Reviewed-by: Peter Maydell <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Edgar E. Iglesias <>

1ddd592f 04/18/2013 03:12 pm Paolo Bonzini

elfload: use abi_short/ushort instead of target_short/ushort

The alignment is a characteristic of the ABI, not the CPU.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Edgar E. Iglesias <>

f8fd4fc4 04/18/2013 03:12 pm Paolo Bonzini

elfload: use abi_int/uint instead of target_int/uint

The alignment is a characteristic of the ABI, not the CPU.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Edgar E. Iglesias <>

918fc54c 04/18/2013 03:12 pm Paolo Bonzini

elfload: use abi_llong/ullong instead of target_llong/ullong

The alignment is a characteristic of the ABI, not the CPU.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Edgar E. Iglesias <>

76cad711 12/19/2012 09:29 am Paolo Bonzini

build: kill libdis, move disassemblers to disas/

Signed-off-by: Paolo Bonzini <>

900cfbca 10/05/2012 03:58 pm Jim Meyering

linux-user: remove two unchecked uses of strdup

Remove two uses of strdup (use g_path_get_basename instead),
and add a comment that this strncpy use is ok.

Reviewed-by: Peter Maydell <>
Signed-off-by: Jim Meyering <>...

dce10401 08/14/2012 10:26 pm Meador Inge

linux-user: Factor out guest space probing into a function

Signed-off-by: Meador Inge <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

806d1021 08/14/2012 10:26 pm Meador Inge

linux-user: Use init_guest_space when -R and -B are specified

Roll the code used to initialize the guest memory space when -R
or -B is used into 'init_guest_space' and then call 'init_guest_space'
from the driver. This way the reserved guest memory space can...

d962783e 07/28/2012 12:13 am Jia Liu

target-or32: Add linux user support

Add QEMU OpenRISC linux user support.

Signed-off-by: Jia Liu <>
Signed-off-by: Blue Swirl <>

d8fd2954 04/06/2012 07:25 pm Paul Brook

Userspace ARM BE8 support

Add support for ARM BE8 userspace binaries.
i.e. big-endian data and little-endian code.
In principle LE8 mode is also possible, but AFAIK has never actually
been implemented/used.

System emulation doesn't have any useable big-endian board models,...

adf050b1 04/06/2012 07:06 pm Benoit Canet

arm-linux-user: fix elfload.c's AT_HWCAP to reflect cpu features.

The cpu capabilities passed by the elf loader in AT_HWCAP where
a constant.
Make AT_HWCAP reflect the emulated cpu features in order to give
correct clues to eglibc.

Riku Voipio: fixed to apply to current head...

9349b4f9 03/14/2012 11:20 pm Andreas Färber

Rename CPUState -> CPUArchState

Scripted conversion:
for file in .[hc] hw/.[hc] hw/kvm/*.[hc] linux-user/*.[hc] linux-user/m68k/*.[hc] bsd-user/*.[hc] darwin-user/*.[hc] tcg/*/*.[hc] target-*/cpu.h; do
sed -i "s/CPUState/CPUArchState/g" $file
done...

05390248 03/14/2012 11:20 pm Andreas Färber

linux-user: Don't overuse CPUState

In target-specific code use CPU*State.

While at it, fix indentation on those lines.

Signed-off-by: Andreas Färber <>

125b0f55 02/02/2012 05:51 pm Alexander Graf

linux-user: save auxv length

We create our own AUXV segment on stack and save a pointer to it.
However we don't save the length of it, so any code that wants to
do anything useful with it later on has to walk it again.

Instead, let's remember the length of our AUXV segment. This...

c7c530cd 01/10/2012 07:40 pm Stefan Weil

elf: Improve symbol lookup (optimize, fix for bsd-user)

Coverity complained about local variable key which was only partially
initiated. Only key.st_value was set. As this was also the only part
of key which was used in function symfind, the code could be optimized...

b4916d7b 12/02/2011 12:50 pm Dong Xu Wang

fix spelling in linux-user sub directory

Cc: Riku Voipio <>
Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

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

8e78064e 10/27/2011 02:43 pm Richard Henderson

ppc64-linux-user: Properly interpret the entry function descriptor.

Don't confuse the load address with the load bias. They're equal
for ET_DYN objects (i.e. ld.so) but different for ET_EXEC objects
(i.e. statically linked).

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

97cc7560 09/09/2011 10:46 am Dr. David Alan Gilbert

linux-user: Implement new ARM 64 bit cmpxchg kernel helper

linux-user: Implement new ARM 64 bit cmpxchg kernel helper

Linux 3.1 will have a new kernel-page helper for ARM implementing
64 bit cmpxchg. Implement this helper in QEMU linux-user mode: * Provide kernel helper emulation for 64bit cmpxchg...

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

cf973e46 07/14/2011 08:41 pm Artyom Tarasenko

set ELF_HWCAP for SPARC and SPARC64

setting ELF_HWCAP fixes dynamic library loading for Linux/sparc64
This patch allows loading busybox from Debian 6 initrd

Signed-off-by: Artyom Tarasenko <>
Signed-off-by: Blue Swirl <>

14322bad 06/21/2011 08:30 pm Laurent ALFONSI

linux-user: Define AT_RANDOM to support target stack protection mechanism.

The dynamic linker from the GNU C library v2.10+ uses the ELF
auxiliary vector AT_RANDOM [1] as a pointer to 16 bytes with random
values to initialize the stack protection mechanism. Technically the...

f3ed1f5d 06/21/2011 08:29 pm Peter Maydell

linux-user: Handle images where lowest vaddr is not page aligned

Fix a bug in the linux-user ELF loader code where it was not correctly
handling images where the lowest vaddr to be loaded was not page aligned.
The problem was that the code to probe for a suitable guest base address...

b9475279 06/21/2011 08:28 pm Cédric VINCENT

linux-user: Fix the load of ELF files that have no "useful" symbol

This patch fixes a "double free()" due to "realloc(syms, 0)" in the
loader when the ELF file has no "useful" symbol, as with the following
example (compiled with "sh4-linux-gcc -nostdlib"):...

a4c075f1 05/20/2011 06:35 pm Ulrich Hecht

s390x: s390x-linux-user support

This patch adds support for running s390x binaries in the linux-user emulation
code.

Signed-off-by: Ulrich Hecht <>
Signed-off-by: Alexander Graf <>

d2fbca94 04/12/2011 09:49 pm Guan Xuetao

unicore32: necessary modifications for other files to support unicore32

Signed-off-by: Guan Xuetao <>
Signed-off-by: Blue Swirl <>

80f5ce75 02/17/2011 11:46 am Laurent Vivier

linux-user: correct core dump format

This patch allows to really use the core dumped by qemu with guest
architecture tools.

- it adds a missing bswap_phdr() for the program headers
of memory regions.

"objdump -x" sample:

BEFORE:

0x1000000 off 0x00200000 vaddr 0x00000400 paddr 0x00000000 align 2**21...

1af02e83 02/09/2011 10:33 am Mike Frysinger

linux-user/elfload: add FDPIC support

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

8d79de6e 02/09/2011 10:33 am Stefan Weil

linux-user: Fix possible realloc memory leak

Extract from "man realloc":
"If realloc() fails the original block is left untouched;
it is not freed or moved."

Fix a possible memory leak (reported by cppcheck).

Cc: Riku Voipio <>
Signed-off-by: Stefan Weil <>...

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

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

linux-user: Handle filesz < memsz for any PT_LOAD segment.

I caught padzero not properly initializing the .bss segment
on a statically linked Alpha program. Rather than a minimal
patch, replace the gross code with a single mmap+memset.

Share more code between load_elf_interp and load_elf_binary....

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

Add more DT_* and AT_* constants to qemu's copy of elf.h.

Moving some PPC AT_* constants from elfload.c at the same time.

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

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

linux-user: Reindent elfload.c.

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

97374d38 06/16/2010 03:03 pm Paul Brook

Usermode exec-stack fix

When loading a shared library that requires an executable stack,
glibc uses the mprotext PROT_GROWSDOWN flag to achieve this.
We don't support PROT_GROWSDOWN.
Add a special case to handle changing the stack permissions in this way....

68a1c816 05/29/2010 04:27 am Paul Brook

Pre-allocate guest address space

Allow pre-allocation of the guest virtual address space in usermode emulation.

Signed-off-by: Paul Brook <>

0d5d4699 05/19/2010 04:24 pm Edgar E. Iglesias

microblaze: Update elf machine nums.

189 was allocated in upstream binutils.

0xbaab was the old temporary value. Still used by some tools and the
linux kernel.

I've seen 115 in older gdb versions, but lets ignore that one.

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

e4cbd44d 05/19/2010 04:09 pm Edgar E. Iglesias

microblaze: Add linux-user core dumping support.

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

2e9a5713 05/05/2010 06:32 pm Paul Brook

Remove PAGE_RESERVED

The usermode PAGE_RESERVED code is not required by the current mmap
implementation, and is already broken when guest_base != 0.
Unfortunately the bsd emulation still uses the old mmap implementation,
so we can't rip it out altogether....

c581deda 05/05/2010 06:32 pm Paul Brook

Better default guest_base

Avoid loading linux-user applications in address space already used/reserved
by the host.

Signed-off-by: Paul Brook <>

7983f435 03/28/2010 05:52 pm Rob Landley

linux-user/ppc: use the Linux register layout

The dynamic linker converts the Linux layout to the AIX layout and is
reentrant so it won't do it a second time if it's already been
converted. In short it work just fine with either register layout.

OTOH, statically linked binaries expect a Linux layout....

703e0e89 03/27/2010 03:16 pm Richard Henderson

linux-user: Use RLIMIT_STACK for default stack size.

The current default stack limit of 512kB is far too small; a fair
number of gcc testsuite failures (for all guests) are directly
attributable to this. Using the -s option in every invocation of
the emulator is annoying to say the least....

b480d9b7 03/13/2010 01:25 am Paul Brook

Fix usermode virtual address type

Usermode virtual addresses are abi_ulong, not target_ulong.

Signed-off-by: Paul Brook <>

9f9f0309 03/01/2010 06:39 am Paul Brook

Disassembler symbol lookup fix

Fix function signature for userspace disassembler symbol lookup.

Signed-off-by: Paul Brook <>

0ddbc96e 01/17/2010 10:51 am Mike Frysinger

fix linux-user microblaze ELF_ARCH definition

Signed-off-by: Mike Frysinger <>
Signed-off-by: Edgar E. Iglesias <>

49995e17 12/19/2009 09:29 pm Aurelien Jarno

linux-user: use TARGET_ABI_FMT_lx to print abi_ulong types

Signed-off-by: Aurelien Jarno <>

dd0a3651 12/19/2009 09:29 pm Nathan Froyd

linux-user: fix ELF_USE_CORE_DUMP/USE_ELF_CORE_DUMP confusion

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

21e807fa 12/19/2009 09:29 pm Nathan Froyd

linux-user: commonify definitions of target typedefs

There's no sense in separately declaring target_{elf_greg,uid,gid,pid}_t
for every architecture. Just declare them once with appropriate
USE_UID16 handling.

Signed-off-by: Nathan Froyd <>...

d049e626 12/19/2009 09:29 pm Nathan Froyd

linux-user: fix ARM core dumps on opposite-endian hosts

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

e2f3e741 12/19/2009 09:29 pm Nathan Froyd

linux-user: add core dump support for PPC

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

51e52606 12/19/2009 09:29 pm Nathan Froyd

linux-user: add core dump support for MIPS

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

7a93cc55 12/19/2009 09:29 pm Nathan Froyd

linux-user: add core dump support for M68K

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

7631c97e 12/19/2009 09:29 pm Nathan Froyd

linux-user: add core dump support for SH

Signed-off-by: Nathan Froyd <>
Signed-off-by: Aurelien Jarno <>

8a57a6c7 12/13/2009 09:32 pm Richard Henderson

target-alpha: Drop bogus UNIQ initial value on Linux.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

cf6de34a 10/16/2009 02:37 pm Riku Voipio

linux-user: Update ARM hwcaps

Update ARM hwcaps to match Linux kernel 2.6.31 state

Signed-off-by: Riku Voipio <>

3bc0bdca 10/04/2009 02:24 pm Paul Bolle

linux-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary(), probably left to aid in
debugging, reflect what the actual code does. The current printf() will
only confuse those who "#if 1" it (it certainly confused me enough to
write this trivial patch)....

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <>

6ece4df6 09/30/2009 09:45 pm Michael S. Tsirkin

elfload: fix coding style nit

Put space between = and * when dereferencing a pointer,
to avoid confusion with old-style "*="

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

ca20cf32 09/20/2009 05:58 pm Blue Swirl

Compile loader only once

Callers must pass ELF machine, byte swapping and symbol LSB clearing
information to ELF loader. A.out loader needs page size information, pass
that too as a parameter.

Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw....

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

ec822001 08/10/2009 09:05 pm Laurent Desnogues

Fix symfind.

this patch fixes an issue in symfind.

Assume you have the following symbols:

Address Size
0045bca0 00000080 T s0
0045bd20 00000112 T s1

You'll notice that s1 is s0 + size.

So the current symfind will find that address 0045bd20 belongs to s0...

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

More NULL pointer fixes

Signed-off-by: Blue Swirl <>

9fdca5aa 07/18/2009 12:17 pm malc

Use correct byteswap routine for elf_note

All elf64_note structure members are Elf64_Word (which is 32bit value)
hence using bswaptls to byteswap it on 64bit platforms is incorrect.

Signed-off-by: malc <>

3efa9a67 07/18/2009 12:16 pm malc

Avoid name clashes with symbols that leak from system headers

Signed-off-by: malc <>

a2547a13 07/17/2009 03:33 pm Laurent Desnogues

ELF codedump build failures

Rename ELF coredump types to avoid conflict with the corresponding host types.

Signed-off-by: Laurent Desnogues <>

379f6698 07/17/2009 03:12 pm Paul Brook

Userspace guest address offsetting

Re-implement GUEST_BASE support.
Offset guest ddress space by default if the guest binary contains
regions below the host mmap_min_addr.
Implement support for i386, x86-64 and arm hosts.

Signed-off-by: Riku Voipio <>...

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

9edc5d79 06/16/2009 04:56 pm Mika Westerberg

linux-user: added x86 and x86_64 support for ELF coredump

Signed-off-by: Mika Westerberg <>
Signed-off-by: Riku Voipio <>

b779e29e 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: linux-user support.

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

df84e4f3 05/16/2009 12:36 am Nathan Froyd

support ELF_HWCAP for PPPC

Signed-off-by: Nathan Froyd <>
Signed-off-by: malc <>

93fcfe39 01/16/2009 12:34 am aliguori

Convert references to logfile/loglevel to use qemu_log*() macros

This is a large patch that changes all occurrences of logfile/loglevel
global variables to use the new qemu_log*() macros.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Anthony Liguori <>...

e58ffeb3 01/14/2009 08:39 pm malc

Remove all traces of powerpc

According to $GCC/gcc/config/rs6000/rs6000-c.c _ARCH_PPC is the
ubiquitous define which should be used to test whether gcc targets
PowerPC, on 64bit platforms _ARCH_PPC64 will be also defined.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6301 c046a42c-6fe2-441c-8c8c-71466251a162

49918a75 10/22/2008 06:11 pm pbrook
  • Use function pointers for symbol lookup (currently for elf32 and elf64,
    could be expanded). This also fixes the bug with mips elf64 symbols
    in current Qemu trunk.
  • Use quicksort and binary search for symbol lookup.
  • Remove unneeded entries from symbol table. This reduced a typical table...
440c7e85 10/05/2008 02:05 pm blueswir1

Export x86_stack_size in qemu.h

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5427 c046a42c-6fe2-441c-8c8c-71466251a162

98448f58 09/30/2008 09:16 pm blueswir1

Silence some warnings about uninitialized variables

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5362 c046a42c-6fe2-441c-8c8c-71466251a162

b55266b5 09/20/2008 11:07 am blueswir1

Suppress gcc 4.x -Wpointer-sign (included in -Wall) warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5275 c046a42c-6fe2-441c-8c8c-71466251a162

a6cc84f4 08/21/2008 01:39 am malc

Kludge to support linux-user on a PPC64

Some headers (e.g. signal.h) include asm/elf.h and the chaos of macro
redefinitions ensues, this kludge avoids it.

Alternative way to fight that would be to change all ELF_XXX and some
other definitions to QEMU_ELF_XXX or something to that effect....

d5975363 06/07/2008 11:50 pm pbrook

Multithreaded locking fixes.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4692 c046a42c-6fe2-441c-8c8c-71466251a162

a07c67df 03/27/2008 01:31 am pbrook

Implement AT_CLKTCK.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4113 c046a42c-6fe2-441c-8c8c-71466251a162

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

suppressed tgetx and tputx (initial patch by Thayne Harbaugh)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3653 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://svn.savannah.nongnu.org/qemu/trunk@3583 c046a42c-6fe2-441c-8c8c-71466251a162

623a930e 10/28/2007 09:45 pm ths

Implement missing MIPS supervisor mode bits.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3472 c046a42c-6fe2-441c-8c8c-71466251a162