sigil/overlay/patchelf/rpath.patch
Emery Hemingway f5108bc99b Update to Nixpkgs-21.11
- gdb patch is upstream, remove
- fix patchelf with empty rpaths
- update to latest ERIS Nim implementation
2022-10-07 21:29:14 -05:00

20 lines
548 B
Diff

commit 32003f90f7eb0d685913cf49a05f32f3125855b0
Author: Emery Hemingway <ehmry@posteo.net>
Date: 2022-05-18 20:17:03 -0500
Fix replacement of empty rpath with an empty rpath
diff --git a/src/patchelf.cc b/src/patchelf.cc
index fd1e7b7..b9f58cd 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1426,7 +1426,7 @@ void ElfFile<ElfFileParamNames>::modifyRPath(RPathOp op,
if (newRPath.size() <= rpathSize) {
- strcpy(rpath, newRPath.c_str());
+ if (rpath) strcpy(rpath, newRPath.c_str());
return;
}