diff options
| author | Andreas Schwab <[email protected]> | 2025-10-22 12:17:53 +0200 |
|---|---|---|
| committer | Aaron Merey <[email protected]> | 2025-10-22 17:57:00 -0400 |
| commit | b491afa0faff470a7d18080ece757342b9805e82 (patch) | |
| tree | 293c22d5556ab3d930a0edb9ff8ce9fd24782ba1 /tests | |
| parent | b327696955e5e9ae6e26275d9459e9ddcb86229f (diff) | |
readelf: use PRIu16 instead of PRId16 for uint16_t
The Elfxx_Half type is unsigned, thus it should be printed as an unsigned
type. This fixes the formatting of such a value if it is bigger than
32767, which would be printed as a negative number with the PRId16 format,
due to a recent change in glibc that properly converts the value to the
narrow type before printing.
Fixes this testsuite failure:
@@ -14,7 +14,7 @@
Flags:
Size of this header: 64 (bytes)
Size of program header entries: 56 (bytes)
- Number of program headers entries: -1 (66000 in [0].sh_info)
+ Number of program headers entries: 65535 (66000 in [0].sh_info)
Size of section header entries: 64 (bytes)
Number of section headers entries: 1
Section header string table index: 0
FAIL run-getphdrnum.sh (exit status: 1)
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
