On Fri, 2 Apr 1999, Philip Blundell wrote:

> >00022394 <Ldiv0>:
> >   22394:       e52de004        str     lr, [sp, -#4]!
> >   22398:       ebfffffe        bl      22398 <Ldiv0+0x4>
> 
> I think I forgot to include the patch to libgcc1-asm.S to add the (PLT) 
> qualifiers.  D'oh.  Try copying that file out of egcs 1.1.x and see if the 
> problem goes away.

Looking at my copy of lib1funcs.asm, it appears Ok,

#ifdef __elf__
#define __PLT__ (PLT)
...
#else
#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.

I also have an old patch that Scott B. made against gcc 2.8.1
which I might take for a spin,

for arm.h,
*** arm.h~      Mon Jul  6 10:26:09 1998
--- arm.h       Tue Aug 18 13:17:46 1998
***************
*** 2028,2033 ****
--- 2028,2034 ----
    fputs ("\tb\t", FILE);\
    assemble_name (FILE,\
                   IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (FUNCTION)));\
+   if (flag_pic) fputs ("(PLT)", FILE);\
    fputc ('\n', FILE);\
  } while (0)

But I wonder if this is "one of those" patches that didn't get
into the main egcs for some reason?

Anyway, I'll keep trying...

-Jamie

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

Reply via email to