qemu Makefile.target configure linux-user/elflo...
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Paul Brook <pbrook> 06/06/11 13:32:59
Modified files:
. : Makefile.target configure
linux-user : elfload.c main.c qemu.h
Added files:
linux-user : flat.h flatload.c linuxload.c
Log message:
bFLT loader (for uClinux binaries).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Makefile.target?cvsroot=qemu&r1=1.113&r2=1.114
http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemu&r1=1.102&r2=1.103
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/elfload.c?cvsroot=qemu&r1=1.34&r2=1.35
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/main.c?cvsroot=qemu&r1=1.83&r2=1.84
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/qemu.h?cvsroot=qemu&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/flat.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/flatload.c?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/linuxload.c?cvsroot=qemu&rev=1.1
Patches:
Index: Makefile.target
===================================================================
RCS file: /sources/qemu/qemu/Makefile.target,v
retrieving revision 1.113
retrieving revision 1.114
Makefile.target +6 -1
@@ -171,7 +171,12 @@ main.o: CFLAGS+=-p endif -OBJS= elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o +OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \ + elfload.o linuxload.o +ifdef TARGET_HAS_BFLT +OBJS+= flatload.o +endif + ifeq ($(TARGET_ARCH), i386) OBJS+= vm86.o endif
Index: configure
===================================================================
RCS file: /sources/qemu/qemu/configure,v
retrieving revision 1.102
retrieving revision 1.103
configure +6 -0
@@ -773,6 +773,7 @@ echo "include ../config-host.mak" >> $config_mak echo "#include \"../config-host.h\"" >> $config_h +bflt="no" interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"` echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
@@ -787,6 +788,7 @@ echo "TARGET_ARCH=arm" >> $config_mak echo "#define TARGET_ARCH \"arm\"" >> $config_h echo "#define TARGET_ARM 1" >> $config_h + bflt="yes" elif test "$target_cpu" = "sparc" ; then echo "TARGET_ARCH=sparc" >> $config_mak echo "#define TARGET_ARCH \"sparc\"" >> $config_h
@@ -842,6 +844,10 @@ echo "CONFIG_SOFTFLOAT=yes" >> $config_mak echo "#define CONFIG_SOFTFLOAT 1" >> $config_h fi +if test "$target_user_only" = "yes" -a "$bflt" = "yes"; then + echo "TARGET_HAS_BFLT=yes" >> $config_mak + echo "#define TARGET_HAS_BFLT 1" >> $config_h +fi # sdl defines if test "$target_user_only" = "no"; then
Index: linux-user/elfload.c
===================================================================
RCS file: /sources/qemu/qemu/linux-user/elfload.c,v retrieving revision 1.34
retrieving revision 1.35
elfload.c +40 -260
468 lines not on this page · raw message
Index: linux-user/main.c
===================================================================
RCS file: /sources/qemu/qemu/linux-user/main.c,v
retrieving revision 1.83
retrieving revision 1.84
main.c +2 -1
@@ -1545,7 +1545,7 @@ env =cpu_init (); global_env = env; -if (elf_exec (filename, argv+optind, environ, regs, info) !=0 ) { +if (loader_exec (filename, argv+optind, environ, regs, info) !=0 ) {printf ("Error loading %s\n" , filename);_exit (1 ); }
@@ -1556,6 +1556,7 @@fprintf (logfile,"start_brk 0x%08lx\n" , info->start_brk);fprintf (logfile,"end_code 0x%08lx\n" , info->end_code);fprintf (logfile,"start_code 0x%08lx\n" , info->start_code); +fprintf (logfile,"start_data 0x%08lx\n" , info->start_data);fprintf (logfile,"end_data 0x%08lx\n" , info->end_data);fprintf (logfile,"start_stack 0x%08lx\n" , info->start_stack);fprintf (logfile,"brk 0x%08lx\n" , info->brk);
Index: linux-user/qemu.h
===================================================================
RCS file: /sources/qemu/qemu/linux-user/qemu.h,v
retrieving revision 1.26
retrieving revision 1.27
qemu.h +36 -5
61 lines not on this page · raw message
Index: linux-user/flat.h
===================================================================
RCS file: linux-user/flat.h
flat.h new file +67 -0
67 lines not on this page · raw message
Index: linux-user/flatload.c
===================================================================
RCS file: linux-user/flatload.c
flatload.c new file +790 -0
790 lines not on this page · raw message
Index: linux-user/linuxload.c
===================================================================
RCS file: linux-user/linuxload.c
linuxload.c new file +195 -0
195 lines not on this page · raw message