The instructions for bswp guarded by "__ARM_ARCH < 6" is ARM code. E.g., bic (immediate), eor (register-shifted register).
This patch forces ARM state even if -mthumb is used (e.g. -mthumb is passed as a global option by build system)
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/builtins/arm/bswapdi2.S | ||
---|---|---|
30 | This doesn't do the right thing: the function symbol will still be decorated with .thumb_func, so this will try to execute ARM instructions in Thumb mode (and probably crash). |
This doesn't do the right thing: the function symbol will still be decorated with .thumb_func, so this will try to execute ARM instructions in Thumb mode (and probably crash).