This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: can't run *.class with GIJ
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Utku Ozcan <utku dot ozcan at netas dot com dot tr>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 20 Oct 2002 12:37:02 -0400 (EDT)
- Subject: Re: can't run *.class with GIJ
On Sun, 20 Oct 2002, Utku Ozcan wrote:
> GIJ doesn't seem to run *.class files by me.
gcj doesn't have a bytecode interpreter for Solaris yet. Soon, perhaps.
> unix> gcj -shared -o HelloWorldApp.so HelloWorldApp.java
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0xb4 /var/tmp/ccQdiPmu.o
...
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
You need -fPIC to compile a DSO.
Jeff