[klibc] arm: use bx on thumb2 (v3)

Use klibc way to define a system dependent preprocessor
definition: disabled by default and enabled for newer arm.

Based on a patch by vorlon that got tested on his beagleboard,
should be functional equivalent. Tested on an arm Debian porter box
for the _KLIBC_ARM_USE_BX == 0 case.
Fixes: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/527720

Cc: Steve Langasek <steve.langasek@canonical.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: maximilian attems <max@stro.at>
5 files changed