aboutsummaryrefslogtreecommitdiff
path: root/linux-user/elfload.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-03-24 21:31:25 +0100
committerRichard Henderson <rth@twiddle.net>2012-09-21 22:02:15 +0200
commit62724cc5ebd7fb9113f156cbc0d2bb5e3cb0a9ae (patch)
tree264a6d37e963318a07ab782c7aea863c7578167e /linux-user/elfload.c
parentcfb75cb9807463ebe18b127096b48b5d0db1ce03 (diff)
linux-user: Use memcpy in get_user/put_user.
When host and target have differing alignment rules, using a cast and direct memory operation can result in SIGBUS. Use memcpy instead, which the compiler will happily optimize when alignment is satisfied. Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/elfload.c')
0 files changed, 0 insertions, 0 deletions