Skip to content
Commit b6eae837 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

elf: Move note processing after l_phdr is updated



Program headers are processed in two pass: after the first pass
load segments are mmapped so in the second pass target specific
note processing logic can access the notes.

The second pass is moved later so various link_map fields are
set up that may be useful for note processing such as l_phdr.
The second pass should be before the fd is closed so that is
available.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 38a38360)

elf: Fix dl-load.c

Rebasing broke commit 38a38360
it was supposed to move code.

(cherry picked from commit 751acde7)
parent c6090dce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment