Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* cc/ld bug? (relocation error)
@ 1994-06-14 13:41 David Pape
  1994-06-14 22:42 ` John F Carr
  0 siblings, 1 reply; 2+ messages in thread
From: David Pape @ 1994-06-14 13:41 UTC (permalink / raw)


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) |


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cc/ld bug? (relocation error)
  1994-06-14 13:41 cc/ld bug? (relocation error) David Pape
@ 1994-06-14 22:42 ` John F Carr
  0 siblings, 0 replies; 2+ messages in thread
From: John F Carr @ 1994-06-14 22:42 UTC (permalink / raw)


In article <2tkc35$ss0@unidoct.Chemietechnik.Uni-Dortmund.DE>,
David Pape <pape@plato.chemietechnik.uni-dortmund.de> wrote:

>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.

This can happen when a name is inconsistently declared as a function
in one place and a variable (including a pointer to a function) in another.
-- 
    John Carr (jfc@mit.edu)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-06-14 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-14 13:41 cc/ld bug? (relocation error) David Pape
1994-06-14 22:42 ` John F Carr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox