glibc/sysdeps/riscv
Kito Cheng c22d2021a9
riscv: Use memcpy to handle unaligned access when fixing R_RISCV_RELATIVE
Although RISC-V Linux will enable the unaligned memory access handler by
default, that is quite expensive in general, using memcpy will be much cheaper
- just break down that into several load/store byte instructions.

ARM and MIPS has similar issue:

ARM: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51456
MIPS: https://gcc.gnu.org/legacy-ml/gcc-help/2005-07/msg00325.html

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2022-06-30 08:04:52 -07:00
..
bits
nofpu
nptl
rv32
rv64
rvd
rvf
sys
Implies
Makefile
__longjmp.S
bsd-_setjmp.c
bsd-setjmp.c
configure
configure.ac
dl-irel.h
dl-machine.h riscv: Use memcpy to handle unaligned access when fixing R_RISCV_RELATIVE 2022-06-30 08:04:52 -07:00
dl-relocate-ld.h
dl-tls.h
dl-trampoline.S
e_sqrtl.c
fpu_control.h
gccframe.h
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
linkmap.h
machine-gmon.h
math-tests-snan-payload.h
math-tests-trap.h
preconfigure
preconfigure.ac
setjmp.S
sfp-machine.h
sotruss-lib.c
stackinfo.h
start.S
tininess.h
tst-audit.h