diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-11-09 22:36:38 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-11-09 22:36:38 -0500 |
commit | 9f290a49bf9ee247d540d3c83875288a7991699c (patch) | |
tree | d9904f2b9698083ae64c122849a3dc3279f5856a /src/string | |
parent | cf40375e8fd14fc02a850af90b145d324d0381b5 (diff) | |
download | musl-9f290a49bf9ee247d540d3c83875288a7991699c.tar.gz |
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).
Diffstat (limited to 'src/string')
-rw-r--r-- | src/string/armel/memcpy.s | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/string/armel/memcpy.s b/src/string/armel/memcpy.s index 54164030..b16be0d6 100644 --- a/src/string/armel/memcpy.s +++ b/src/string/armel/memcpy.s @@ -189,8 +189,6 @@ less_than_32_left: /* we're done! restore everything and return */ 1: ldmfd sp!, {r5-r11} ldmfd sp!, {r0, r4, lr} - tst lr, #1 - moveq pc, lr bx lr /********************************************************************/ @@ -378,6 +376,4 @@ copy_last_3_and_return: /* we're done! restore sp and spilled registers and return */ add sp, sp, #28 ldmfd sp!, {r0, r4, lr} - tst lr, #1 - moveq pc, lr bx lr |