[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MiNT lib PL48



Hi Mikka,

On Tue, 19 May 1998, Mikko Larjava wrote:

> On Thu, 14 May 1998, Zdenko Barbaric wrote:
> 
> > Today I compiled the new MiNTLib PL48 for the m68000 and m68020-040,
> > (long, short and base-relative versions) with gcc 2.7.2.3 and gas 2.5.1.
> > All works fine except one weird thingy, that's probably inherited from
> > PL47 :  When linking with the m68000 base-relative lib, I get an error
> > message like this: "ld:absolute reference to _errno in normdf.o" .
> 
> This is probably caused by gas 2.5.1. I thought that I changed everything 
> but didn't noticy this. In errbase.h:
> 
> #define Errno __MBASE__@(_errno)
> should be
> #define Errno __MBASE__@(_errno:w)
> and
> #define Stderr __MBASE__@(__iob+52)
> should be
> #define Stderr __MBASE__@((__iob+52):w)
> 
> This only makes a difference when compiled for 68030.
> 
> Or your compiler doesn't define __MBASE__ with -mbaserel.
> 

I changed the definitions as proposed above, and now it works fine. :-)
Many thanks.

Greetings,
                          Zdenko




*****************************************************
*** e-mail:   zbarbari@ix.urz.uni-heidelberg.de   ***
**            umez@rz.uni-karlsruhe.de           ****  
*****************************************************