mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 05:26:47 +07:00
[MIPS] vpe: Use p_paddr instead of p_vaddr loader.
This subtle difference makes ELF overlays work. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
6e86b0bf0b
commit
8292366341
@ -942,8 +942,8 @@ static int vpe_elfload(struct vpe * v)
|
||||
if (phdr->p_type != PT_LOAD)
|
||||
continue;
|
||||
|
||||
memcpy((void *)phdr->p_vaddr, (char *)hdr + phdr->p_offset, phdr->p_filesz);
|
||||
memset((void *)phdr->p_vaddr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz);
|
||||
memcpy((void *)phdr->p_paddr, (char *)hdr + phdr->p_offset, phdr->p_filesz);
|
||||
memset((void *)phdr->p_paddr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz);
|
||||
phdr++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user