Skip to content

Commit

Permalink
Skip empty section (fixes NixOS#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoomHammer committed Oct 7, 2016
1 parent 327d804 commit 965c878
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,9 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsExecutable()
for (unsigned int i = 1; i <= lastReplaced; ++i) {
Elf_Shdr & shdr(shdrs[i]);
std::string sectionName = getSectionName(shdr);
if (sectionName == "") {
continue;
}
debug("looking at section '%s'\n", sectionName.c_str());
/* !!! Why do we stop after a .dynstr section? I can't
remember! */
Expand Down

0 comments on commit 965c878

Please sign in to comment.