From 9f290a49bf9ee247d540d3c83875288a7991699c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 9 Nov 2015 22:36:38 -0500 Subject: remove non-working pre-armv4t support from arm asm the idea of the three-instruction sequence being removed was to be able to return to thumb code when used on armv4t+ from a thumb caller, but also to be able to run on armv4 without the bx instruction available (in which case the low bit of lr would always be 0). however, without compiler support for generating such a sequence from C code, which does not exist and which there is unlikely to be interest in implementing, there is little point in having it in the asm, and it would likely be easier to add pre-armv4t support via enhanced linker handling of R_ARM_V4BX than at the compiler level. removing this code simplifies adding support for building libc in thumb2-only form (for cortex-m). --- crt/arm/crtn.s | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crt') diff --git a/crt/arm/crtn.s b/crt/arm/crtn.s index 1b626c0a..b3eca856 100644 --- a/crt/arm/crtn.s +++ b/crt/arm/crtn.s @@ -1,11 +1,7 @@ .section .init pop {r0,lr} - tst lr,#1 - moveq pc,lr bx lr .section .fini pop {r0,lr} - tst lr,#1 - moveq pc,lr bx lr -- cgit v1.2.1