Commit Graph

725 Commits

Author SHA1 Message Date
Jörg Thalheim
07bbf47e9c Merge pull request #437 from NixOS/ci
make objdump/objcopy/readelf configurable and respect cross-compiling…
2022-11-06 15:49:06 +01:00
Jörg Thalheim
053c2eb871 Merge pull request #436 from NixOS/ci
Refactor flake.nix
2022-11-06 15:38:53 +01:00
Jörg Thalheim
b0599fe776 make objdump/objcopy/readelf configurable and respect cross-compiling related prefixes 2022-11-06 15:38:38 +01:00
Jörg Thalheim
c543a45f7f remove aarch64 from build package set for now 2022-11-06 15:35:15 +01:00
Jörg Thalheim
b3f3feea53 drop patchelf-musl on i686 2022-11-06 15:28:05 +01:00
Jörg Thalheim
94ef48393a refactor flake to no longer use overlay + re-import nixpkgs 2022-11-06 15:25:50 +01:00
Jörg Thalheim
5c80c59a4c drop deprecated flake output attributes 2022-11-06 15:07:43 +01:00
Jörg Thalheim
78a2a707e4 Merge pull request #435 from NixOS/ci
add workaround for readelf from binutils 2.30
2022-11-06 14:03:23 +01:00
Jörg Thalheim
19c1a2fdd6 add workaround for readelf from binutils 2.30 2022-11-06 13:58:44 +01:00
Jörg Thalheim
ba47f658cb Merge pull request #434 from NixOS/ci
update vendored elf file
2022-11-06 10:54:47 +01:00
Jörg Thalheim
2cb863fb75 update vendored elf file 2022-11-06 10:26:41 +01:00
Jörg Thalheim
90fb373b58 Merge pull request #433 from NixOS/ci
patchelf: correct page size for sparc64/sparc32
2022-11-06 10:11:44 +01:00
Jörg Thalheim
da968fb849 patchelf: correct page size for sparc64/sparc32 2022-11-06 10:07:02 +01:00
Jörg Thalheim
337b8dd141 Merge pull request #432 from NixOS/flake-deps
switch to nixpkgs-unstable in flake
2022-11-06 09:00:54 +01:00
Jörg Thalheim
c3682eb555 switch to nixpkgs-unstable in flake 2022-11-06 08:56:49 +01:00
Jörg Thalheim
26559397d9 Merge pull request #430 from NixOS/ia64-fixes
write out replace sections in original order
2022-11-05 14:30:01 +01:00
Jörg Thalheim
42394e880b write out replace sections in original order
Libc and other programs sometimes make assumption in which order
sections.

i.e. glibc expects that the strtab is after the symtab section: 9cc9d61ee1/elf/dl-fptr.c (L179)

To decrease the likelyhood of breakages we keep the relative order the
same when replacing section.
2022-11-05 14:12:11 +01:00
Jörg Thalheim
7c18779e85 Merge pull request #428 from NixOS/ia64-fixes
fix pagesize on ia64
2022-11-04 17:07:53 +01:00
Jörg Thalheim
b21526c11a fix pagesize on ia64 2022-11-04 17:03:08 +01:00
Jörg Thalheim
a6ca31778b Merge pull request #427 from NixOS/ci
Set dev version suffix in master branch
2022-11-04 16:32:41 +01:00
Jörg Thalheim
f9801198bf Set dev version suffix in master branch 2022-11-04 16:31:09 +01:00
Jörg Thalheim
438d23e29c no newline in version file 0.16.1 2022-10-28 09:41:27 +02:00
Jörg Thalheim
c6d9c49f24 patchelf: bump version 2022-10-28 09:39:02 +02:00
Jörg Thalheim
af77f12554 Merge pull request #415 from Bo98/load-overlap-fix
Rework file shifting to avoid sections crossing multiple segments
0.16.0
2022-10-26 08:47:39 +02:00
Jörg Thalheim
ec72eeb4dd Merge pull request #421 from NixOS/riscv64
ci: add riscv64 support
2022-10-26 08:46:23 +02:00
Jörg Thalheim
7b9def4069 ci: add riscv64 support 2022-10-26 08:41:36 +02:00
Jörg Thalheim
2d6e7cf421 Merge pull request #420 from NixOS/flake-update
Flake update
2022-10-26 08:27:53 +02:00
Jörg Thalheim
582a96a2e3 update nixpkgs 2022-10-26 08:22:00 +02:00
Bo Anderson
15f02b0f7a Skip empty PT_NOTE sections
Previous versions of patchelf prior to 0.12 could create empty PT_NOTE sections. For backwards compatibility reasons, we should not error on such binaries.

Fixes #400.
2022-10-26 08:20:56 +02:00
Jörg Thalheim
0582e4d9c2 Merge pull request #412 from Bo98/scratch-fix
tests/contiguous-note-sections.sh: use scratch directory
2022-10-26 08:18:51 +02:00
Jörg Thalheim
55d5db9dde Merge pull request #411 from Bo98/notes-bounds
Fix out of bounds access when increasing program header table
2022-10-26 08:18:40 +02:00
Jörg Thalheim
80329739f3 Merge pull request #414 from Bo98/gnu-property
Sync .note.gnu.property to PT_GNU_PROPERTY
2022-10-26 08:17:51 +02:00
Jörg Thalheim
b751eeb137 Merge pull request #419 from xiaoxiaoafeifei/master
Fix Out-of-bounds read in the function modifyRPath
2022-10-26 08:11:17 +02:00
Jörg Thalheim
ea989aeee2 Merge pull request #409 from NixOS/cxx-17
fix c++17 check
2022-10-26 08:10:42 +02:00
zhailiangliang
96c8422e37 Out-of-bounds read exists in the function modifyRPath 2022-10-26 10:48:04 +08:00
Jörg Thalheim
75f25a3b59 Merge pull request #418 from NixOS/dependabot/github_actions/cachix/install-nix-action-18
Bump cachix/install-nix-action from 17 to 18
2022-10-17 08:27:14 +02:00
dependabot[bot]
dd391aa751 Bump cachix/install-nix-action from 17 to 18
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 01:46:41 +00:00
Bo Anderson
109b771f53 Rework file shifting to avoid sections crossing multiple segments
Fixes #403.
2022-10-13 18:25:04 +01:00
Bo Anderson
de79f1a144 Sync .note.gnu.property to PT_GNU_PROPERTY 2022-10-10 16:43:48 +01:00
Bo Anderson
a93de9d4ce tests/contiguous-note-sections.sh: use scratch directory 2022-10-10 15:14:31 +01:00
Bo Anderson
fc21d139a4 Fix out of bounds access when increasing program header table 2022-10-10 15:13:11 +01:00
Jörg Thalheim
9921136529 fix c++17 check
https://github.com/NixOS/patchelf/issues/393

Appearantly there are compilers that support -std=c++17 but do not
really support c++17.
2022-10-09 14:30:03 +02:00
Jörg Thalheim
683e41d340 Merge pull request #381 from crystax/master
Add --print-os-abi and --set-os-abi options
2022-09-28 11:44:58 +02:00
Jörg Thalheim
7281d999e9 Merge pull request #407 from robert-scheck/glibc-hwcaps
Handle glibc-hwcaps on ppc64le on CentOS/RHEL/Rocky 8 for tests/replace-add-needed.sh (fixes #406)
2022-09-27 21:52:14 +02:00
Robert Scheck
f7053d0237 Handle glibc-hwcaps on ppc64le on CentOS/RHEL/Rocky 8 for tests/replace-add-needed.sh (fixes #406)
ldd(1) usually returns for ELF binaries output like this:

	libc.so.6 => /lib64/libc.so.6 (0x00007fbacd6ca000)

But with glibc-hwcaps, the output could also be like this:

	libc.so.6 => /lib64/glibc-hwcaps/power9/libc-2.28.so (0x00007fffb5800000)

See also: https://sourceware.org/pipermail/libc-alpha/2020-June/115250.html
2022-09-27 00:41:51 +02:00
Dmitry Moskalchuk
5faf453436 Add documentation and test case for --print-os-abi and --set-os-abi
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
2022-09-17 16:20:49 +03:00
Dmitry Moskalchuk
a37476da03 Merge remote-tracking branch 'upstream/master'
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
2022-09-17 15:06:13 +03:00
Jörg Thalheim
c2b419dc2a Merge pull request #392 from NixOS/docs
man/patchelf: bump date
2022-07-16 08:52:49 +02:00
Jörg Thalheim
1bb2824171 man/patchelf: bump date 2022-07-16 08:52:07 +02:00
Jörg Thalheim
9de88c4ea1 Merge pull request #391 from NixOS/docs
README: move release history to github release page
2022-07-16 08:49:30 +02:00