Re: [PATCH v2 5/6] elf: Pass the fd to note processing

2020-12-10 Thread Adhemerval Zanella
On 27/11/2020 10:21, Szabolcs Nagy via Libc-alpha wrote: > 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

[PATCH v2 5/6] elf: Pass the fd to note processing

2020-11-27 Thread Szabolcs Nagy
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.