ld.so: missing variable initialisation

This commit is contained in:
Pierre Pronchery 2021-10-11 00:02:42 +02:00
parent b9f0f8cbd1
commit 707e7f920c

View File

@ -163,6 +163,7 @@ static int _elf_phdr(int fd, char const * filename, Elf_Ehdr * ehdr,
else if(phdr.p_filesz == phdr.p_memsz)
{
flags |= MAP_FILE;
prot = _elf_prot(phdr.p_flags);
if(prot & PROT_WRITE)
flags |= MAP_PRIVATE;
f = fd;