On 06/01/2011 05:36 AM, Cédric VINCENT wrote: > 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.vinc...@st.com> > Signed-off-by: Yves JANIN <yves.ja...@st.com>
Reviewed-by: Richard Henderson <r...@twiddle.net> r~