linux-user/flatload.c: Fix setting of image_info::end_code
commit734a659ad264ac080457167e845ffabbaaa66d0e
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Jul 2022 15:14:06 +0000 (28 16:14 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 28 Jul 2022 17:17:24 +0000 (28 19:17 +0200)
treef7651553bbfc3307e4e4d2620e1f652b2aff9d76
parent3e4abe2c92964aadd35344a635b0f32cb487fd5c
linux-user/flatload.c: Fix setting of image_info::end_code

The flatload loader sets the end_code field in the image_info struct
incorrectly, due to a typo.

This is a very long-standing bug (dating all the way back to when
the bFLT loader was added in 2006), but has gone unnoticed because
(a) most people don't use bFLT binaries
(b) we don't actually do anything with the end_code field, except
    print it in debugging traces and pass it to TCG plugins

Fix the typo.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1119
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220728151406.2262862-1-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/flatload.c