Port-arm archive

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

Re: thumb libc SIGILL from __libc_mutex_unlock (Re: thumb compilation)



Hi Mikko,

On Thu, May 22, 2008 12:59 pm, Mikko Rapeli wrote:
> If compile thread-stub.c without -mthumb, I get the next illegal
> instruction
> from lib/libc/getopt.c:
>
> (gdb) bt
> #0  0x00008de8 in getopt ()
> #1  0x00008bbc in main ()
> (gdb) info registers

> pc             0x8de8   36328

> (gdb) disassemble 0x00008de8

[Snip to objdump output]

>     8dd8:       3301            add     r3, #1
>     8dda:       6032            str     r2, [r6, #0]
>     8ddc:       6023            str     r3, [r4, #0]
>     8dde:       6836            ldr     r6, [r6, #0]
>     8de0:       2e3a            cmp     r6, #58
> ...

Unless I'm missing something (which is likely :), you've not included the
instruction that's causing the problem.

Thanks,
Chris



Home | Main Index | Thread Index | Old Index