taylorr@glycine.cs.unc.edu (Russell Taylor) (06/13/90)
We have an IRIS 4D workstation running OS 3.2.2. When I am trying to compile a system of object files and libraries into a program, I am getting the following errors from the loader: Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x427080 to 0x10033ce8 (index) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x4271dc to 0x10033ce8 (index) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x42729c to 0x10033ce8 (index) Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x427c88 to 0x10033ce8 (index) There are many files in the system, so the resultant code may be very large. I assume that this is what is giving the loader trouble. Is there a way to make it take 'long jumps' or something to fix this problem? The code compiles and runs fine on a sun4. Thanks, Russell Taylor (taylorr@cs.unc.edu)
taylorr@glycine.cs.unc.edu (Russell Taylor) (06/14/90)
To anwer my own question, the cause of the error line: Warning: jump relocation out-of-range, bad object file produced, can't jump from 0x427c88 to 0x10033ce8 (index) from the ld program was that there was a data item defined with the name 'index' and there was also a procedure defined with the name 'index' The loader tried to make a call to the procedure go instead into the data area, which it did not like one bit. Oddly enough, I found the answer in a release notes for DECstation ULTRIX. It appears to have the same behavior. Russell