linux-user/elfload: Move PT_INTERP detection to first loop
commit8a1a5274c9395e2d92aaf6126379f58804a82aca
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Oct 2020 17:37:44 +0000 (21 10:37 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 10:44:02 +0000 (27 10:44 +0000)
tree532c61e9b21ab1ecc80b739d57722b8d5ecbe0db
parent4d9d535a8a52bf9ccc2c325b88498b35b6cc579d
linux-user/elfload: Move PT_INTERP detection to first loop

For BTI, we need to know if the executable is static or dynamic,
which means looking for PT_INTERP earlier.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201021173749.111103-8-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/elfload.c