]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix ELFv2 JMP_SLOT relocation fixup
authorjhibbits <jhibbits@FreeBSD.org>
Thu, 6 Dec 2018 04:30:24 +0000 (04:30 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Thu, 6 Dec 2018 04:30:24 +0000 (04:30 +0000)
commitdea3520c76c65c5ad0e8321f54fc74153b4de9a4
tree37bc0a9b89f031df176d65f9c69aa824d0ac8e12
parent52acc74d855d28003c59286c6eefee7b7436bed4
powerpc: Fix ELFv2 JMP_SLOT relocation fixup

The jump slot is a function pointer, not a descriptor pointer, in ELFv2.  Just
write the pointer itself over, not the contents of the pointer, which would be
the first instruction of the function.
sys/powerpc/powerpc/elf64_machdep.c