[comp.sys.mips] ld problem

gamiddle@maytag.waterloo.edu (Guy Middleton) (07/05/90)

On an RC3240, riscos 4.30, we get this nasty message:

/bsd43/usr/lib/libc.a(res_send.o): jump relocation out-of-range, bad object file produced, can't jump from 0x41268c to 0x10005048 (select)

when linking a program that uses both gethostbyname(), and routine from our
local utility library (which lives in /usr/local/lib).  Our library also has a
routine that calls gethostbyname(), but it is not used here.

Has anybody seen this kind of thing?  Is it a known bug?  Thanks.

 -Guy Middleton, University of Waterloo		gamiddleton@watmath.waterloo.edu
		(+1 519 885 1211 x3472)		gamiddleton@watmath.uwaterloo.ca

rogerk@mips.COM (Roger B.A. Klorese) (07/06/90)

In article <1990Jul5.160231.9523@maytag.waterloo.edu> gamiddle@maytag.waterloo.edu (Guy Middleton) writes:
>On an RC3240, riscos 4.30, we get this nasty message:
>
>/bsd43/usr/lib/libc.a(res_send.o): jump relocation out-of-range, bad object file produced, can't jump from 0x41268c to 0x10005048 (select)
>
>when linking a program that uses both gethostbyname(), and routine from our
>local utility library (which lives in /usr/local/lib).  Our library also has a
>routine that calls gethostbyname(), but it is not used here.
>
>Has anybody seen this kind of thing?  Is it a known bug?  Thanks.

It's a "known bug," but not in the system code...

What's going on is, some part of your code is defining a data item called
"select".  Code at 0x41268c, which is in .text, is then trying to jump to
"select()" which has been linked at 0x10005048, which is in .data.  Search
your code for an external data item called "select" and change its name.
-- 
ROGER B.A. KLORESE      MIPS Computer Systems, Inc.      phone: +1 408 720-2939
MS 4-02    950 DeGuigne Dr.   Sunnyvale, CA  94086   voicemail: +1 408 524-7421
rogerk@mips.COM         {ames,decwrl,pyramid}!mips!rogerk         "I'm the NLA"
"Maybe this world is another planet's hell." -- Aldous Huxley