This lot mainly cleans up `comparison between signed and unsigned' gcc

warnings.  One usused var, and a macro parenthesis fix too.  Also check
input sections are elf when doing gc in elflink.h.
This commit is contained in:
Alan Modra
2000-02-21 12:01:27 +00:00
parent 2403ff6fdb
commit f6af82bd44
18 changed files with 159 additions and 85 deletions

View File

@@ -274,7 +274,7 @@ bfd_read (ptr, size, nitems, abfd)
get = size * nitems;
if (abfd->where + get > bim->size)
{
if (bim->size < abfd->where)
if (bim->size < (bfd_size_type) abfd->where)
get = 0;
else
get = bim->size - abfd->where;
@@ -689,7 +689,7 @@ bfd_seek (abfd, position, direction)
else
abfd->where += position;
if (abfd->where > bim->size)
if ((bfd_size_type) abfd->where > bim->size)
{
abfd->where = bim->size;
bfd_set_error (bfd_error_file_truncated);