linux-user/elfload: Adjust iteration over phdr
commit4d9d535a8a52bf9ccc2c325b88498b35b6cc579d
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Oct 2020 17:37:43 +0000 (21 10:37 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 10:44:02 +0000 (27 10:44 +0000)
treea2517c070cfa9ad92a6b5af55bdab68c622878f2
parente5eaf570a3df577e09347ba071841caec8b61372
linux-user/elfload: Adjust iteration over phdr

The second loop uses a loop induction variable, and the first
does not.  Transform the first to match the second, to simplify
a following patch moving code between them.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201021173749.111103-7-richard.henderson@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/elfload.c