[Toybox] [PATCH] readelf: fix 32-bit build on Android.
enh
enh at google.com
Wed May 19 10:46:54 PDT 2021
---
toys/other/readelf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/other/readelf.c b/toys/other/readelf.c
index 45afd83a..29e27244 100644
--- a/toys/other/readelf.c
+++ b/toys/other/readelf.c
@@ -57,7 +57,7 @@ static long long elf_get(char **p, int len)
long long result;
if (*p+len-TT.elf>TT.size)
- perror_exit("Access off end: %ld[%d] of %lld\n", *p-TT.elf, len,
TT.size);
+ perror_exit("Access off end: %td[%d] of %lld\n", *p-TT.elf, len,
TT.size);
result = ((TT.endian == 2) ? peek_be : peek_le)(*p, len);
*p += len;
--
2.31.1.818.g46aad6cb9e-goog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210519/52a5917b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-readelf-fix-32-bit-build-on-Android.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210519/52a5917b/attachment.bin>
More information about the Toybox
mailing list