Page MenuHome GnuPG

mpi/longlong.h and building for ARM thumb mode
Closed, ResolvedPublic

Description

The inline assembly does not work when building for ARM in thumb mode. The simple
patch is addition one more condition to checks...

Details

Due Date
Jan 31 2012, 1:00 AM
Version
1.4.10

Event Timeline

Please give me short explanation what the thumb mode is and under what
circumstances it is used.

We don't want to introduce a regression, thus some caution is required.

Thanks for asking. ARM Thumb is a separate instruction set within the ARM CPU. The
charachteristics are that each instruction is 16bit (instead of 32bit of a classical RISC
design). The basic idea is that with smaller instruction size, the binaries are smaller, the
"i-cache" magically has more room for them...

Thumb instructions get enabled when -mthumb is passed to the gcc and the preprocessor will
set the the variable we are checking for.

If you need more information, e.g. a link to the place in gcc where this variable is set I'm
happy to provide that.

werner set Due Date to Aug 31 2011, 2:00 AM.Jul 1 2011, 12:43 PM
werner added a project: Assembler.

Fixed but not tested with commit 6daa9db; to be released in 1.4.12.

I also fixed the same thing in libgcrypt master.

werner changed Due Date from Aug 31 2011, 2:00 AM to Jan 31 2012, 1:00 AM.Jan 3 2012, 7:01 PM
werner claimed this task.
werner removed a project: Restricted Project.