]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Parse MIPS relocations to unbreak kldxref on MIPS.
authorjhb <jhb@FreeBSD.org>
Wed, 24 Apr 2019 23:35:10 +0000 (23:35 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 24 Apr 2019 23:35:10 +0000 (23:35 +0000)
commit3a12784f1555e9c855df0ee9be7d98defcaed893
treea3d92d471260b3207445da8bbef191d3c67ace68
parent760abc0463109f1ff29fdcd8018d782951b45a82
Parse MIPS relocations to unbreak kldxref on MIPS.

Parse the R_MIPS_32 and R_MIPS_64 relocations.  Both Elf_Rel and
Elf_Rela relocations are handled since O32 MIPS uses Elf_Rel while N64
uses Elf_Rela.  Note that R_MIPS_32 is only handled for 32-bit mips
and R_MIPS_64 for 64-bit.  N32 is untested.

Reviewed by: imp
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D19870
usr.sbin/kldxref/ef_mips.c [new file with mode: 0644]