From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3791bf85ab6b583d,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,3791bf85ab6b583d,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-06-14 07:19:07 PST Path: nntp.gmd.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!Uni-Dortmund.DE!Chemietechnik.Uni-Dortmund.DE!plato!pape From: pape@plato.chemietechnik.uni-dortmund.de (David Pape) Newsgroups: comp.unix.ultrix,comp.sys.dec Subject: cc/ld bug? (relocation error) Date: 14 Jun 1994 13:41:57 GMT Organization: Uni-Dortmund, Chemietechnik Message-ID: <2tkc35$ss0@unidoct.Chemietechnik.Uni-Dortmund.DE> NNTP-Posting-Host: plato.chemietechnik.uni-dortmund.de Keywords: cc,ld Xref: nntp.gmd.de comp.unix.ultrix:14419 comp.sys.dec:16123 Hi, I've got a nasty problem with the linker on our DECstation 5000/200 running Ultrix 4.3a. When I compile my program (currently with 150+ object files and the X-windows libraries, Oracle Pro*C libraries among others) the linker chokes with the following message: GP (null) ld: gp relocation out-of-range errors have occured and bad object file produced (corrective action must be taken) 71781 in the positive direction, 0 in the negative direction. Best -G num value to compile all -count'ed objects creating bo with is 7 Best -G num value calculation reliable only if all -count'ed objects were compiled with -G num greater or equal to maximum size of a literal pool item (8). I have tried the following: 1.) compiling all object files with -G 16 2.) linking with -G 16 3.) linking with -s (strip symbol table info from executable) 4.) linking with -bestGnum (to try to find out what Gnum is valid) 5.) linking with -r I always get the same result (gp relocation out-of-range error), albeit with different range errors (the 71781 above) Any clues? I REALLY need to get this program compiled somehow! -- David Pape | "The people who own the country | pape@plato.Chemietechnik.Uni-Dortmund.DE | ought to govern it" | Dortmund, Germany | - John Jay | tel: 49 231 7552682 | (signer of the U.S. Constitution) |