]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix ELFv2 JMP_SLOT relocation fixup
authorJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 6 Dec 2018 04:30:24 +0000 (04:30 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 6 Dec 2018 04:30:24 +0000 (04:30 +0000)
commitac37786a0a216703840b03fe8be74cf9dceb0d3a
tree37bc0a9b89f031df176d65f9c69aa824d0ac8e12
parent7c4f1a1c5ac05474dcaf86bfd4493be02edf59ff
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