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 e44c318 commit bfc3db3Copy full SHA for bfc3db3
src/patchelf.cc
@@ -557,8 +557,12 @@ template<ElfFileParams>
557
Elf_Shdr & ElfFile<ElfFileParamNames>::findSection(const SectionName & sectionName)
558
{
559
Elf_Shdr * shdr = findSection2(sectionName);
560
- if (!shdr)
561
- error("cannot find section '" + sectionName + "'");
+ if (!shdr) {
+ std::string extraMsg = "";
562
+ if (sectionName == ".interp" || sectionName == ".dynamic" || sectionName == ".dynstr")
563
+ extraMsg = ". The input file is most likely statically linked";
564
+ error("cannot find section '" + sectionName + "'" + extraMsg);
565
+ }
566
return *shdr;
567
}
568
0 commit comments