patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

A small utility to modify the dynamic linker and RPATH of ELF executables

Results 148 patchelf issues
Sort by recently updated
recently updated
newest added

Continuation of https://github.com/NixOS/patchelf/pull/374 with some more safety checks.

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. Release notes Sourced from actions/download-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts....

dependencies

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. Release notes Sourced from actions/upload-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts....

dependencies

**Describe the bug** Library produced by renaming dynamic symbol is unusable and cannot be recognized by ldd. nm -a -D shows correct symbols in it. **Steps To Reproduce** [libcoi_host.so.0.gz](https://github.com/NixOS/patchelf/files/13681080/libcoi_host.so.0.gz) gzip...

bug

Reproducer: ```shellsession $ cat trivialcgo.go package main import "C" func main() { } $ go build -ldflags=-linkmode=internal /opt/opensource/go-test-cases/trivialcgo.go $ objcopy --remove-section .note.go.buildid trivialcgo $ patchelf --set-rpath doesntmatter ./trivialcgo$ ./trivialcgo Segmentation...

**Describe the bug** build on netbsd-9.3-amd64, reported errors: ``` /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28: required from 'void ElfFile::renameDynamicSymbols(const std::unordered_map&) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off...

bug

Build failure for s390x arch build with error "span : out of range". snippet : ====== patchelf: error: Span access out of range. Steps To Reproduce: ================ Compile patchelf v0.18...

bug

**Describe the bug** Relocatable binaries aren't processed and give an error. Offending code: https://github.com/NixOS/patchelf/blob/917ea45b79de04f69059f42a8e2621f7caeae1c9/src/patchelf.cc#L281-L282 Missing handling of `ET_REL` (see [ELF headers](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header)) A clear and concise description of what the bug...

bug

**Describe the bug** When ELF has a malformed .dynamic section, running `./src/patchelf --shrink-rpath --allowed-rpath-prefixes /usr/lib:/foo/lib malformed_elf` will cause patchelf crash. **Steps To Reproduce** ```bash ./configure CFLAGS='-g -O0' CXXFLAGS='-g -O0' --with-asan...

bug

Appends `PT_NULL` entries to the program header table so that can may be easily targeted by custom tools. Also add automated tests for it. Releated issue: #533. It works but...