• Willy Tarreau's avatar
    tools/nolibc: enable support for thumb1 mode for ARM · 20470dfd
    Willy Tarreau authored
    Passing -mthumb to the kernel.org arm toolchain failed to build because it
    defaults to armv5 hence thumb1, which has a fairly limited instruction set
    compared to thumb2 enabled with armv7 that is much more complete. It's not
    very difficult to adjust the instructions to also build on thumb1, it only
    adds a total of 3 instructions, so it's worth doing it at least to ease use
    by casual testers. It was verified that the adjusted code now builds and
    works fine for armv5, thumb1, armv7 and thumb2, as long as frame pointers
    are not used.
    Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    20470dfd
arch-arm.h 9.21 KB