This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: misp-sgi-irix5.2 assembler-preprocessor error building libgcj


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]