We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 396955b commit f78ceb5Copy full SHA for f78ceb5
src/patchelf.cc
@@ -774,7 +774,8 @@ void ElfFile<ElfFileParamNames>::rewriteHeaders(Elf_Addr phdrAddress)
774
if (!shdr) error("cannot find .rel.dyn or .rel.got");
775
dyn->d_un.d_ptr = shdr->sh_addr;
776
}
777
- /* should probably update DT_RELA */
+ else if (d_tag == DT_RELA)
778
+ dyn->d_un.d_ptr = findSection(".rela.dyn").sh_addr; /* PPC Linux */
779
else if (d_tag == DT_VERNEED)
780
dyn->d_un.d_ptr = findSection(".gnu.version_r").sh_addr;
781
else if (d_tag == DT_VERSYM)
0 commit comments