Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!mips!servitude!rogerk From: rogerk@mips.COM (Roger B.A. Klorese) Newsgroups: comp.sys.mips Subject: Re: loader error question Message-ID: <42831@mips.mips.COM> Date: 6 Nov 90 15:50:40 GMT References: <28303@shamash.cdc.com> Sender: news@mips.COM Reply-To: rogerk@mips.COM (Roger B.A. Klorese) Organization: MIPS Computer Systems, Inc. Lines: 31 In article <28303@shamash.cdc.com> dwl@udev.cdc.com (Daren W Latham) writes: > >I have seen the following error, or something similar several times, >does anybody know what causes this, and how do you work around it, or >fix it. > >cc -o xbd xbd.o shared.o field.o scores.o -lXext -lX11 \ > -systype bsd43 -lmld -lm > >ld: >/bsd43/usr/lib/libc.a(syslog.o): jump relocation out-of-range, > bad object file produced, can't jump from 0x429bb4 to 0x10007d90 (time) >*** Error code 1 > >Stop. Daren: That problem is almost universally caused by having an external data element declared with the same name as a procedure. This message is telling you that it is trying to jump from 0x429bb4, an address in the default text region range, to 0x10007d90, an address in the default data region range (data starts at 0x10000000). The symbol it is attempting to resolve is "time", and you probably have a variable called "time" while your code or routines called by you call "time". -- ROGER B.A. KLORESE MIPS Computer Systems, Inc. MS 6-05 930 DeGuigne Dr. Sunnyvale, CA 94086 +1 408 524-7421 rogerk@mips.COM {ames,decwrl,pyramid}!mips!rogerk "I'm the NLA" "The problem with the rat race is even if you win you're still a rat." - Tomlin