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

Re: MiNT lib PL48



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.