]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ksyms: Fixup symbols for powerpc in the kernel, not just modules
authorjhibbits <jhibbits@FreeBSD.org>
Mon, 20 May 2019 02:41:09 +0000 (02:41 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Mon, 20 May 2019 02:41:09 +0000 (02:41 +0000)
commitd864978fc67a6495bbf47d800cdee911abc65ab9
treec55242acbca9f9b91a5ca9a2d53c78f30bd4af0b
parent250e158ddf52459661439141407bca505d199c19
ksyms: Fixup symbols for powerpc in the kernel, not just modules

Summary:
PowerPC kernels are fully position independent, just like kernel modules.
The same fixups that are done for modules therefore need to be done to the
kernel, else symbol resolution in, e.g., DTrace, cannot resolve the kernel
symbols, so only addresses in the kernel are printed, while kernel module
symbols are printed.

Test Plan:
Run lockstat on powerpc64.  Note symbols are resolved for kernel and
modules.

Reviewed By: markj
Differential Revision: https://reviews.freebsd.org/D20316
sys/dev/ksyms/ksyms.c