]> sourceware.org Git - glibc.git/commit
elf: Move note processing after l_phdr is updated
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 29 Oct 2020 13:29:15 +0000 (13:29 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 11 Dec 2020 15:45:19 +0000 (15:45 +0000)
commit38a3836011f3fe3290a94ab136dcb5f3c5c9f4e2
treeb5ae7f354ce486f1ffd69ab5c1a869be2580b1b4
parent8b8f616e6a594b91d0afb152384bf2a9f72b7288
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: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-load.c
This page took 0.0393 seconds and 5 git commands to generate.