Commit Graph

705 Commits

Author SHA1 Message Date
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
Jörg Thalheim
4d67024677 README: move release history to github release page 2022-07-16 08:48:47 +02:00
Jörg Thalheim
1bc502f1c3 Merge pull request #384 from NixOS/riscv64
ci: bump alpine
2022-07-16 08:29:01 +02:00
Jörg Thalheim
d816091264 Merge pull request #387 from NixOS/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-07-16 08:27:44 +02:00
dependabot[bot]
bd3fef9b49 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-16 06:27:09 +00:00
Jörg Thalheim
42973912c7 Merge pull request #390 from NixOS/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-07-16 08:26:58 +02:00
Jörg Thalheim
8e9aaef2a0 Merge pull request #388 from NixOS/dependabot/github_actions/actions/download-artifact-3
Bump actions/download-artifact from 2 to 3
2022-07-16 08:26:36 +02:00
Jörg Thalheim
8f2b8c3476 Merge pull request #389 from NixOS/dependabot/github_actions/cachix/install-nix-action-17
Bump cachix/install-nix-action from 13 to 17
2022-07-16 08:26:27 +02:00
Jörg Thalheim
b4aca9842f Merge pull request #386 from NixOS/dependabot/github_actions/docker/setup-qemu-action-2
Bump docker/setup-qemu-action from 1 to 2
2022-07-16 08:26:14 +02:00
Jörg Thalheim
3d96500b80 ci: bump alpine 2022-07-16 08:24:23 +02:00
dependabot[bot]
c3eac3ba91 Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-16 06:21:42 +00:00
dependabot[bot]
a7dfa8bfb8 Bump cachix/install-nix-action from 13 to 17
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 13 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v13...v17)

---
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-07-16 06:21:39 +00:00
dependabot[bot]
d9c827cb62 Bump actions/download-artifact from 2 to 3
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-16 06:21:36 +00:00
dependabot[bot]
248cabac7a Bump docker/setup-qemu-action from 1 to 2
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-16 06:21:32 +00:00
Jörg Thalheim
da890c4486 Merge pull request #385 from NixOS/dependabot
add dependabot
2022-07-16 08:21:13 +02:00
Jörg Thalheim
fcb9ca697a add dependabot 2022-07-16 08:20:55 +02:00
Jörg Thalheim
35c1934c2d Merge pull request #383 from NixOS/compiler-check
add compiler check for c++17
2022-07-16 08:12:30 +02:00
Jörg Thalheim
e89d02f33d add compiler check for c++17 2022-07-16 08:05:26 +02:00
Jörg Thalheim
4900800256 fix version file 0.15.0 2022-07-16 07:22:27 +02:00
Jörg Thalheim
48707416c4 bump version 2022-07-16 07:19:00 +02:00
Dmitry Moskalchuk
5cabf09f9e Remove unnecessary check of ELF type before modifying OS ABI
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
2022-07-11 10:27:10 +03:00