Page MenuHomeFreeBSD

Fix kldxref on PowerPC64
ClosedPublic

Authored by luporl on Feb 26 2019, 9:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 27, 3:28 PM
Unknown Object (File)
Sat, Apr 25, 6:38 AM
Unknown Object (File)
Tue, Apr 21, 11:54 AM
Unknown Object (File)
Mon, Apr 20, 11:17 PM
Unknown Object (File)
Mon, Apr 20, 10:19 AM
Unknown Object (File)
Mon, Apr 20, 5:10 AM
Unknown Object (File)
Sat, Apr 18, 10:16 PM
Unknown Object (File)
Fri, Apr 17, 1:07 PM

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22756
Build 21848: arc lint + arc unit