BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
374 stars 59 forks source link

Fix crash when loading hello-clang4-static #84

Closed ceeac closed 6 years ago

ceeac commented 6 years ago

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.

ceeac commented 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.