Patch: MIPS support for libjava.
David Daney
ddaney@avtrex.com
Tue Sep 9 05:29:00 GMT 2003
Greetings:
Here is a patch against 3.3.1 that adds SIGSEGV handling of
NullPointerExceptions for a MIPS host. It also contains a custom
backtrace function as the version we have in our libc is broken.
After patching you have to run automake, autoconf and autoheader.
Some small notes on building...
This has only been tested with the configuration shown below. The
target platform tested is linux 2.4.18 w/ glibc 2.2.4.
Use Binutils 2.14 or later.
I configured with this configure command:
../gcc-3.3.1/configure --host=i686-pc-linux-gnu --target=mipsisa32el-linux \
--enable-languages=c,c++,java \
--with-headers=/home/mipsel-linux/mipsel-linux/include \
--prefix=/home/mipsel-linux --with-custom-backtrace \
--with-libgcj-mips-xgot --with-broken-dladdr
My backtrace is broken hence the --with-custom-backtrace.
My dladdr also seems to be broken hence --with-broken-dladdr.
These two are only important if you are throwing and catching exceptions.
Binutils seems to have broken multi-got support. So if you get GOT
overflow type messages from ld, configure with --with-libgcj-mips-xgot.
On an in-house build of libgcj I removed many unneeded files from
libgcj and am able to link without --with-libgcj-mips-xgot.
David Daney
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc331.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030909/d88c131d/attachment.ksh>
More information about the Java-patches
mailing list