[PATCH] Big-endian fix for memcpy-armv7m.S
Fri Dec 9 13:54:00 GMT 2016
I noticed that memcpy-armv7m.S makes assumptions about little-endian
byte ordering that cause it to get copies with certain sizes/alignments
wrong in big-endian mode. We hit this with a "generic profile" ARMv7
big-endian multilib, but I guess anyone trying to run an M-profile chip
in big-endian mode (if such things exist) could hit the same problem.
I've tested this with (caveat, somewhat experimental!) QEMU patches:
running under the GCC testsuite with an ARMv7 big-endian multilib, and
results show a positive delta for about 15 tests (e.g.
OK to apply?
* libc/machine/arm/memcpy-armv7m.S (mis_src_copy): Handle
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 902 bytes
Desc: not available
More information about the Newlib