- Handle all of the same PowerPC relocations in the boot loader that the in-kernel linker handles.
- Handle all relocations in a PowerPC ELF file loaded by the loader, not just relocations in .data.
Previously, the linker set containing module metadata for the kernel,
and the kernel version number in particular, resided in a separate
section (.data.rel) instead of .data. As a result, the version of the
"kernel" module in the kernel itself was left as zero. When loading a
kernel module from the boot loader, the module failed to initialize
during boot because the it failed the version check on "kernel". The
same module could be loaded fine post-boot via kldload on powerpc,
just not from the loader. By processing all relocations in all sections,
the "kernel" version is now properly populated and modules can be loaded
from the loader.
Tested by: tuexen