Add a bare minimum (but wrong) R_X86_64_JMP_SLOT relocation type for

kernel modules.  We actually need to include any addends and the symbol
offset value, but for gcc/binutils didn't set it anywhere I've found on
'cc -fpic -shared' kernel modules.
This commit is contained in:
peter 2005-09-27 18:18:23 +00:00
parent 9a8dd5b1cf
commit 257c4e0863

View File

@ -195,6 +195,7 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
break;
case R_X86_64_GLOB_DAT: /* S */
case R_X86_64_JMP_SLOT: /* XXX need addend + offset */
addr = lookup(lf, symidx, 1);
if (addr == 0)
return -1;