-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply patch in patchelf to avoid zeroing SONAME (#549)
This patch is a copy of the upstream PR NixOS/patchelf#171. This fixes a bug in patchelf which causes an SONAME entry filled with 'X' values.
- Loading branch information
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Patch from https://github.com/NixOS/patchelf/pull/171 | ||
diff --git a/src/patchelf.cc b/src/patchelf.cc | ||
index 0b4965a..592799d 100644 | ||
--- a/src/patchelf.cc | ||
+++ b/src/patchelf.cc | ||
@@ -1074,13 +1074,6 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string & | ||
return; | ||
} | ||
|
||
- /* Zero out the previous SONAME */ | ||
- unsigned int sonameSize = 0; | ||
- if (soname) { | ||
- sonameSize = strlen(soname); | ||
- memset(soname, 'X', sonameSize); | ||
- } | ||
- | ||
debug("new SONAME is '%s'\n", newSoname.c_str()); | ||
|
||
/* Grow the .dynstr section to make room for the new SONAME. */ |