John Ericson
fa67b61ec1
Start preparing 0.15.3 release
2025-08-12 18:59:58 -04:00
Bo Anderson
eb1f61ac0b
Fix out of bounds access when increasing program header table
...
(cherry picked from commit fc21d139a4
)
2025-08-12 18:40:15 -04:00
zhailiangliang
5b27dc4d5a
Out-of-bounds read exists in the function modifyRPath
...
(cherry picked from commit 96c8422e37
)
2025-08-12 18:39:47 -04:00
Jörg Thalheim
76486f7643
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.
(cherry picked from commit 9921136529
)
2025-08-12 18:38:06 -04:00
John Ericson
d27e04333c
Merge commit '7281d999e95d6730d1d08fc7517c15e27ddfb65f' into 0.15-maintenance
2025-08-12 18:37:16 -04:00
John Ericson
58f5b19503
Release 0.15.2
...
Very minor, just a build system thing. See change log.
0.15.2
2025-08-12 17:16:59 -04:00
Heiko Becker
6b0d933887
Also respect a prefixed nm and strings too
...
(cherry picked from commit 1ab6930d15
)
2025-08-12 17:11:38 -04:00
Heiko Becker
731fcc20ef
Also pass STRIP to the tests
...
It is used in tests/no-gnu-hash.sh.
(cherry picked from commit d9ff398634
)
2025-08-12 17:11:12 -04:00
John Ericson
db8cbe93f2
Release 0.15.1
0.15.1
2025-08-12 16:10:17 -04:00
John Ericson
64e8cf5c12
Add change log for a potential, not-yet-released 0.15.1
2025-08-12 15:59:26 -04:00
John Ericson
4ac172be9a
Format markdown in the commit log
2025-08-12 15:48:41 -04:00
Christian Göttsche
89d970597f
Avoid implicit conversion
...
Use auto to avoid implicit type conversion, hiding possible value
truncation.
(cherry picked from commit 00d1e82f2b
)
2025-08-12 15:23:59 -04:00
Christian Göttsche
90bad95364
Avoid implicit value truncations in wri()
...
Abort on truncation of values being written to the ELF data, to prevent
silent behavior mismatch.
(cherry picked from commit 28e95b30f3
)
2025-08-12 15:23:58 -04:00
Christian Göttsche
daba6af292
Avoid dropping const qualifier
...
(cherry picked from commit b5b59ca4cb
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
86c3d0f441
Declare file local functions static
...
(cherry picked from commit 889350de50
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
a188583fb0
Drop superfluous semicolons
...
(cherry picked from commit 1c2d1fffaf
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
986a0aeeba
Use C++11 [[noreturn]]
...
(cherry picked from commit b2897ab819
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
602405bb13
Avoid potential overflows in checkPointer()
...
Prevent overflows in the addtion of q and size, and avoid truncations in
callers by using size_t as type for size.
(cherry picked from commit e883229437
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
2b9700b643
Drop unnecessary casts in getElfType()
...
Also declare the function static and warn if return value not used.
(cherry picked from commit 98d1813f25
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
45a6dcee39
Close file before potentially throwing
...
(cherry picked from commit c00676a28a
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
de48fab274
Avoid unnecessary copies in splitColonDelimitedString()
...
Avoid creating a stringstream by using find().
(cherry picked from commit a393454963
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
d8de743799
Use C++ casts instead of raw C ones in hdr()
...
(cherry picked from commit 404761cf4d
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
547d8d7bd2
Drop unnecessary friend declarations
...
(cherry picked from commit 09673eb553
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
728797dbed
Add misc functions annotations
...
Make the behavior of functions more explicit.
(cherry picked from commit fbb12a72ad
)
2025-08-12 15:23:45 -04:00
Christian Göttsche
5baeaeecd5
Add required includes in header file
...
Enable to parse the header file on its own, e.g. for language servers
(clangd).
(cherry picked from commit ce5907fc40
)
2025-08-12 15:23:42 -04:00
John Ericson
c0ee925daf
Add 0.15 release info
...
Taken for retroactive documentation from GitHub.
2025-08-12 15:15:07 -04:00
Jörg Thalheim
344efe7cef
README: move release history to ChangeLog.md
...
John thinks its better that we keep this information in-repo. It just
doesn't need to go in the read-em.
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems >
2025-08-12 15:14:33 -04:00
Breno Rodrigues Guimaraes
a97bfdf479
Fix all shellcheck issues
...
(cherry picked from commit 8adc31ed7b
)
2025-08-12 15:06:56 -04:00
Jörg Thalheim
61fdb6e999
tests: apply suggestions from shellcheck
...
(cherry picked from commit be4b84635f
)
2025-08-12 15:04:30 -04:00
Jörg Thalheim
2d18660af7
fix checkPhase for cross builds
...
fixes https://github.com/NixOS/patchelf/issues/417
(cherry picked from commit f7b184c004
)
2025-08-12 15:04:13 -04:00
Bo Anderson
33e3e8b617
tests/contiguous-note-sections.sh: use scratch directory
...
(cherry picked from commit a93de9d4ce
)
2025-08-12 15:03:34 -04:00
Jörg Thalheim
06b8a41214
make objdump/objcopy/readelf configurable and respect cross-compiling related prefixes
...
(cherry picked from commit b0599fe776
)
2025-08-12 14:59:49 -04:00
John Ericson
03746bff2c
Backport infra improvements from master to 0.15
...
This is the version currently used in Nixpkgs as the stable version, so
I am interested in seeing it be developable, even as the hope is to move
to a newer version.
2025-08-12 14:54:44 -04: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
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