Comment 3 for bug 571647

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

It looks like an additional fix is needed to allow this to build with the (stricter) current trunk binutils - see below.

I'll post more info when we have it available.

> -----Original Message-----
> From: Matthew Gretton-Dann
> Sent: 04 May 2010 11:17
> To: Dave P Martin
> Cc: 'Matthias Klose'
> Subject: RE: [Bug 571647] Re: eglibc: [armel] make syscalls
> out-of-line to improvedebugging
>
> Dave,
>
> This was trunk glibc, but I don't know what binutils Dan
> Jacobowitz used to develop against - and it is binutils that
> is producing the error.
>
> Looking at the patch - the required fix is to add
> cfi_startproc, and cfi_endproc directives in
> __libc_do_syscall
> (sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S):
>
> ENTRY (__libc_do_syscall)
> .fnstart
> cfi_startproc @@@@ Add this line
> push {r7, lr}
> .save {r7, lr}
> cfi_adjust_cfa_offset (8)
> cfi_rel_offset (r7, 0)
> cfi_rel_offset (lr, 4)
> mov r7, ip
> swi 0x0
> pop {r7, pc}
> cfi_endproc @@@@ Add this line
> .fnend
>
> Thanks,
>
> Matt