Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapcraft: build and use patchelf 0.18
Patching with patchelf 0.14.3 available in 22.04 produces the result binaries get silently broken and break parsing with python-elfutils. Inspectign a patched binary with readelf also shows a warning like so: snapcraft-snapd-on-amd64-for-amd64-1579591 ../project# readelf -h snapd.orig ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Position-Independent Executable file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x4800e0 Start of program headers: 64 (bytes into file) Start of section headers: 680 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 12 Size of section headers: 64 (bytes) Number of section headers: 37 Section header string table index: 35 readelf: Warning: Section 0 has an out of range sh_link value of 72 The upstream patchelf 0.18 is fixed, so do a local build patchelf and use it instead of a distro package. Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information