2009年4月10日 星期五

build UQBT

build uqbt

require libelfg0-dev package

1. tar xzf uqbt1.0alpha.tar.gz
2. ./configure --with-source=pent --with-target=sparc --disable-vpo --enable-remote --prefix=/home/tk/local
3. vim Makefile
change CPPFLAGS= -I/usr/bin/../include/linux to CPPFLAGS=
change CC=gcc to CC=gcc-2.95
change CXX=g++-2.95
pass '--traditional-format' option to linker
%s/-lstdc++/-Wl,--traditional-format -lstdc++/g
4. vim include/config.h
change #define HAVE_ELF_H 1 to #define HAVE_ELF_H 0
5. vim include/ElfBinaryFile.h
put #include to the top of #ifndef ELF32_R_SYM
6. vim loader/ElfBinaryFile.cc
elf_hash(pName) ==> elf_hash((unsigned char*)pName)
7. make

The processes goes fine until ld, there will be alot of errors shown, put we still can get the uqbtps executable file

however, it cannot translate the compiled program ...

沒有留言:

張貼留言