Closed ceeac closed 6 years ago
Reading the ELF spec again, .rel.plt
has relocations of type R_386_IRELATIVE
, for which the reference to the symbol table must be 0. So it makes more sense to guard against this case, even though we don't support this type of relocation yet.
Crash was caused by .rel.plt referencing the NULL section in its sh_link field. Do not apply relocations when sh_link does not reference a symbol table.