This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: misp-sgi-irix5.2 assembler-preprocessor error building libgcj
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: misp-sgi-irix5.2 assembler-preprocessor error building libgcj
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 20 Jul 1999 15:21:47 -0300
- Cc: gcc at egcs dot cygnus dot com
- References: <oriu7f2p3u.fsf@cupuacu.lsd.dcc.unicamp.br>
On Jul 20, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
> Oh well! Anyway, even after manually preprocessing the file and
> assembling it manually, it still loses :-(
> Object file format error in: mips_sgi_mach_dep.o: non-shared Elf object "mips_sgi_mach_dep.o" cannot be linked shared.
The work-around here was to add -Wa,-KPIC to the flags passed to gcc
when called to assemble it, or to add `.options pic2' to the assembly
source (which is what gcc does in the assembly code it produces). At
least when the assembler is GNU as, which is what I'm using.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them