]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kldxref on PowerPC64
authorluporl <luporl@FreeBSD.org>
Wed, 27 Feb 2019 13:24:42 +0000 (13:24 +0000)
committerluporl <luporl@FreeBSD.org>
Wed, 27 Feb 2019 13:24:42 +0000 (13:24 +0000)
commit01e7964d6f95602c786aeb0cc8fdd08684ea4881
treeb1efec8567ac23559fc85195384420e255e04d3b
parent001b002f2baadcb1f78e1e2c74716f976ed6b6ed
Fix kldxref on PowerPC64

When using kldxref on kernel modules built with clang8 + lld8,
kldxref would be unable to find the modules metadata information,
because PowerPC64 was using the ef_nop.c implementation of
ef_reloc().

When GNU LD was used, it was also relocating the metadata section of
the .ko file. LLD does not do this, but only generate dynamic
relocations for it. With minor changes, ef_powerpc.c can now work
for PowerPC64 too.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D19370
usr.sbin/kldxref/Makefile
usr.sbin/kldxref/ef_powerpc.c