Skip to content

Commit 04e83a2

Browse files
committed
Merge branch '0.16-maintenance' into 0.17-maintenance
2 parents 0c58067 + 4c0bb4f commit 04e83a2

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

ChangeLog.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ Changes from 0.15.3:
2222
(These notes are the remainder of 0.16.0 that was not backported to 0.15.3.
2323
Originally, 0.16.0 was branched from 0.15.0, and those changes were fresh in this release, having never been backported.)
2424

25+
## 0.15.5 (August 12, 2025)
26+
27+
Bugfix backports from 0.18.0:
28+
29+
* Adjust `roundUp` for 0 as input by @cgzones in https://github.com/NixOS/patchelf/pull/466
30+
31+
Bugfix backports from 0.17.{0, 1}:
32+
33+
* Fix page size constants for Itanium and SPARC.
34+
* Fix Out-of-bounds read in the function `modifySoname` by @yairKoskas in https://github.com/NixOS/patchelf/pull/451
35+
2536
## 0.15.4 (August 12, 2025)
2637

2738
* Update to a later glibc `elf.h`.
@@ -170,7 +181,7 @@ Changes compared to 0.13:
170181
* Rewrite section indices in symbol tables. This for instance allows
171182
gdb to show proper backtraces.
172183

173-
* Added `--remove-needed' option.
184+
* Added `--remove-needed` option.
174185

175186
## 0.6 (November 7, 2011)
176187

@@ -186,7 +197,7 @@ Changes compared to 0.13:
186197

187198
* Various bugfixes.
188199

189-
* `--force-rpath' now deletes the `DT_RUNPATH` if it is present.
200+
* `--force-rpath` now deletes the `DT_RUNPATH` if it is present.
190201

191202
## 0.4 (June 4, 2008)
192203

@@ -196,18 +207,18 @@ Changes compared to 0.13:
196207

197208
* FreeBSD support.
198209

199-
* `--set-rpath', `--shrink-rpath' and `--print-rpath' now prefer
210+
* `--set-rpath`, `--shrink-rpath` and `--print-rpath` now prefer
200211
`DT_RUNPATH` over `DT_RPATH`, which is obsolete. When updating, if both
201212
are present, both are updated. If only `DT_RPATH` is present, it is
202-
converted to `DT_RUNPATH` unless `--force-rpath' is specified. If
203-
neither is present, a `DT_RUNPATH` is added unless `--force-rpath' is
213+
converted to `DT_RUNPATH` unless `--force-rpath` is specified. If
214+
neither is present, a `DT_RUNPATH` is added unless `--force-rpath` is
204215
specified, in which case a `DT_RPATH` is added.
205216

206217
## 0.3 (May 24, 2007)
207218

208-
* Support for 64-bit ELF binaries (such as on x86_64-linux).
219+
* Support for 64-bit ELF binaries (such as on `x86_64-linux`).
209220

210-
* Support for big-endian ELF binaries (such as on powerpc-linux).
221+
* Support for big-endian ELF binaries (such as on `powerpc-linux`).
211222

212223
* Various bugfixes.
213224

src/patchelf.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ static void writeFile(const std::string & fileName, const FileContents & content
435435

436436
static uint64_t roundUp(uint64_t n, uint64_t m)
437437
{
438+
if (n == 0)
439+
return m;
438440
return ((n - 1) / m + 1) * m;
439441
}
440442

tests/set-rpath-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SCRATCH=scratch/$(basename "$0" .sh)
33

44
if test "$(uname)" = FreeBSD; then
55
echo "skipping on FreeBSD"
6-
exit 0
6+
exit 77
77
fi
88

99
rm -rf "${SCRATCH}"

tests/set-rpath-rel-map.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OBJCOPY=${OBJCOPY:-objcopy}
66

77
if ! $OBJDUMP -p main | grep -q MIPS_RLD_MAP_REL; then
88
echo "No MIPS_RLD_MAP_REL dynamic section entry, skipping"
9-
exit 0
9+
exit 77
1010
fi
1111

1212
rm -rf "${SCRATCH}"

0 commit comments

Comments
 (0)