Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!hao!husc6!rutgers!iuvax!ndmath!nj From: nj@ndmath.UUCP (nj @ a loss) Newsgroups: comp.sys.amiga Subject: Re: Help with BLINK 7.2 linking Message-ID: <586@ndmath.UUCP> Date: 31 Dec 87 19:21:07 GMT References: <2232@crash.cts.com> Organization: the Univ. of Notre Dame Math Dept. Lines: 21 Summary: -b0, -r0 are not defaults In article <2232@crash.cts.com>, caug-tom@pro-charlotte.cts.com (Tom McKeel) writes: > I have recently been working on a C program to get the directory on any disk > drive. Well, I used an example which was originally compiled with Manx 3.2a. > When I try to compile this program after making some minor changes I got a > strange linking error which I do not understand. The program compiled without > and warnings or errors. During the 2ND pass of the linker(BLINK 7.2) I got > this error: > > Error 504: UNKNOWN symbol - Distance for Data Reloc16 > 32768 > First Reference in unit mydir.o at offset 00000010 in file 'ram:mydir.o' > To Unit mydir.o at offset 00000010 in file 'ram:mydir.o' > This sounds like the same problem I had for awhile until I called Lattice. Contrary to what the manual says at first, it automatically turns on base- and pc-relative addressing. Try turning either or both off with -b0 and -r0, and it should link properly. This was just a documentation error that got overlooked. nj