b[l]x instruction in cortex-m3 code
Daniel Jacobowitz
drow@false.org
Tue Jul 19 03:59:00 GMT 2011
More information about the Binutils mailing list
Tue Jul 19 03:59:00 GMT 2011
- Previous message (by thread): b[l]x instruction in cortex-m3 code
- Next message (by thread): b[l]x instruction in cortex-m3 code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jul 18, 2011 at 4:03 PM, Daniel Otte <daniel.otte@rub.de> wrote: > Hi, > when I link code for the ARM Cortex-M3 the b[l]x instruction is emitted. > Since Cortex-M3 has no ARM mode and no b[l]x instruction the CPU goes in a fault > mode when it is asked to execute it. > > As far as I have read it is ok for the compiler to emit b[l]x but the linker is > required to translate it into b[l] instructions. > > I tried a lot of linker flags with no success. Typically this means you are calling a function that is not correctly marked as Thumb code, so the linker is helpfully switching you back to ARM mode; check the target symbol. -- Thanks, Daniel
- Previous message (by thread): b[l]x instruction in cortex-m3 code
- Next message (by thread): b[l]x instruction in cortex-m3 code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list