On Fri, 2 Apr 1999, Jamie Guinan wrote:

> Looking at my copy of lib1funcs.asm, it appears Ok,
> 
> #ifdef __elf__
> #define __PLT__ (PLT)
> ...
> #else
#error __elf__ is not defined  (I added this for testing)
> #define __PLT__
> ...
> Ldiv0:
>       str     lr, [sp, #-4]!
>       bl      SYM (__div0) __PLT__
>       mov     r0, #0                  @ about as wrong as it could be
>       ldmia   sp!, {pc}RETCOND
> ...
> 
> I'll check to make sure that __elf__ is defined at compile time.

Ok, in xgcc's first pass at libgcc1.S during "make bootstrap",
__elf__ is not defined, so __PLT__ is a no-op.

Is __elf__ supposed to be defined internally by xgcc at this point?
It doesn't appear to be,

$ (cd gcc; ./xgcc -dumpspecs)
...
*predefines:
-Dunix -Darm -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(arm)
-Amachine(arm) -D__ELF__ -Darm_elf
...

I don't want to start putting hacks in when there's a proper
fix waiting to be found.

-Jamie

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to