]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Pass the fd to note processing
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 28 Oct 2020 15:17:06 +0000 (15:17 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 11 Dec 2020 15:45:37 +0000 (15:45 +0000)
commitc00452d7757a300931ee186d043c43b48eeb0875
tree5107070cbfbdd9f3ceb17038986a90e2f4824d0d
parent38a3836011f3fe3290a94ab136dcb5f3c5c9f4e2
elf: Pass the fd to note processing

To handle GNU property notes on aarch64 some segments need to
be mmaped again, so the fd of the loaded ELF module is needed.

When the fd is not available (kernel loaded modules), then -1
is passed.

The fd is passed to both _dl_process_pt_gnu_property and
_dl_process_pt_note for consistency. Target specific note
processing functions are updated accordingly.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-load.c
elf/rtld.c
sysdeps/aarch64/dl-prop.h
sysdeps/generic/dl-prop.h
sysdeps/generic/ldsodefs.h
sysdeps/x86/dl-prop.h