rather than relying on a trick that happens to work for the current relocation schemes. Also add some comments and improve variable naming.
relocation is not sufficient for ELF relocatable object format modules, since accessing the module metadata involves following pointers between different ELF sections. This allows kldxref to correctly build linker.hints on the amd64 platform.