diff --git a/src/patchelf.cc b/src/patchelf.cc index 55b38e33..32e43557 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -942,7 +942,7 @@ void ElfFile::rewriteHeaders(Elf_Addr phdrAddress) Elf_Shdr * shdr = findSection2(".rel.plt"); if (!shdr) shdr = findSection2(".rela.plt"); /* 64-bit Linux, x86-64 */ if (!shdr) shdr = findSection2(".rela.IA_64.pltoff"); /* 64-bit Linux, IA-64 */ - if (!shdr) error("cannot find section corresponding to DT_JMPREL"); + if (!shdr) continue; dyn->d_un.d_ptr = shdr->sh_addr; } else if (d_tag == DT_REL) { /* !!! hack! */