Cédric VINCENT b947527941 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"):

    .text
    .align 1
    .global _start
    _start:
        mov     #1, r3
        trapa   #40     // syscall(__NR_exit)
        nop

The bug appears when the log (option "-d") is enabled.

Signed-off-by: Cédric VINCENT <cedric.vincent@st.com>
Signed-off-by: Yves JANIN <yves.janin@st.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Reviewed-by: Richard Henderson <rth@twiddle.net>
2011-06-21 20:28:38 +03:00
2011-06-14 12:56:49 +02:00
2011-06-08 09:04:29 +01:00
2011-06-03 13:34:01 +02:00
2011-05-20 17:35:12 +02:00
2011-06-14 09:34:35 -05:00
2011-06-03 13:34:02 +02:00
2011-04-16 12:24:28 +01:00
2011-04-08 13:03:34 -06:00
2011-05-08 10:09:59 +02:00
2011-05-08 10:09:59 +02:00
2011-06-08 11:56:40 +02:00
2011-01-10 10:55:10 +01:00
2011-02-20 18:45:09 +01:00
2011-01-20 20:58:56 +00:00
2011-06-10 23:18:19 +02:00
2011-06-15 19:58:48 +00:00
2011-03-22 08:39:12 -05:00
2011-03-16 17:11:07 -03:00
2011-06-15 14:36:16 +02:00
2011-06-07 13:52:10 -05:00
2011-06-07 13:52:10 -05:00
2011-06-07 13:52:10 -05:00
2011-01-20 20:54:21 +00:00
2011-04-09 10:56:17 +01:00
2011-03-06 21:01:32 +01:00
2011-06-14 03:08:57 +02:00
2011-05-31 10:18:04 -07:00
2011-06-14 09:34:34 -05:00
2011-06-15 19:58:48 +00:00
2011-06-15 19:58:48 +00:00
2011-06-15 19:58:48 +00:00
2011-02-09 10:33:54 +02:00
2011-05-08 16:55:24 +00:00
2011-06-06 09:14:42 +02:00
2011-01-09 20:59:53 +00:00
2011-03-13 14:44:22 +00:00
2011-06-06 08:54:55 -05:00
2011-06-14 09:34:34 -05:00
2011-02-02 08:39:28 +01:00
2011-06-15 19:58:48 +00:00
2011-05-08 10:10:01 +02:00
2011-05-08 10:10:01 +02:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%