summaryrefslogtreecommitdiffstats
path: root/src/elflint.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2008-02-29 10:17:16 +0000
committerRoland McGrath <[email protected]>2008-02-29 10:17:16 +0000
commit47c5c35de6bc548dff7577e3dae38d183b719232 (patch)
tree394cb1742a0980c11e34cecd046ec955f462057a /src/elflint.c
parent834de6f38901b6add14b6f5f7dda8550638d98ec (diff)
src/
2008-02-29 Roland McGrath <[email protected]> * readelf.c (print_attributes): Add a cast. * elflint.c (check_attributes): Likewise. * unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition. (add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise.
Diffstat (limited to 'src/elflint.c')
-rw-r--r--src/elflint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elflint.c b/src/elflint.c
index 9a1a7179..54aa1114 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -3213,7 +3213,7 @@ section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"),
if (MY_ELFDATA != ehdr->e_ident[EI_DATA])
CONVERT (subsection_len);
- if (p - chunk < subsection_len)
+ if (p - chunk < (ptrdiff_t) subsection_len)
{
ERROR (gettext ("\
section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"),