diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-28 11:00:13 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-28 11:01:21 -0700 |
commit | 47fdcf63c04b5c220974affc8ff1d9ef8a041919 (patch) | |
tree | edb5303ef9da47d2786c33f950721cbb70f44d68 /bfd/bfdio.c | |
parent | 6e75794e9da0e12b44c36272e16d18449d25a03d (diff) | |
download | gdb-47fdcf63c04b5c220974affc8ff1d9ef8a041919.zip gdb-47fdcf63c04b5c220974affc8ff1d9ef8a041919.tar.gz gdb-47fdcf63c04b5c220974affc8ff1d9ef8a041919.tar.bz2 |
Change bfd_get_size/bfd_get_file_size to ufile_ptr
bfd_get_size and bfd_get_file_size should return the unsigned file
size. Otherwise they return negative values for file >= 2GB with
32-bit ufile_ptr.
bfd/
* bfd-in2.h: Regenerated.
* bfdio.c (bfd_get_size): Change return type to ufile_ptr.
(bfd_get_file_size): Likewise.
binutils/
* objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
comparing against bfd_get_file_size return.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index e301570..fa7fb21 100644 --- a/bfd/bfdio.c +++ b/bfd/bfdio.c @@ -392,7 +392,7 @@ FUNCTION bfd_get_size SYNOPSIS - file_ptr bfd_get_size (bfd *abfd); + ufile_ptr bfd_get_size (bfd *abfd); DESCRIPTION Return the file size (as read from file system) for the file @@ -420,7 +420,7 @@ DESCRIPTION size reasonable?". */ -file_ptr +ufile_ptr bfd_get_size (bfd *abfd) { struct stat buf; @@ -439,7 +439,7 @@ FUNCTION bfd_get_file_size SYNOPSIS - file_ptr bfd_get_file_size (bfd *abfd); + ufile_ptr bfd_get_file_size (bfd *abfd); DESCRIPTION Return the file size (as read from file system) for the file @@ -448,7 +448,7 @@ DESCRIPTION */ -file_ptr +ufile_ptr bfd_get_file_size (bfd *abfd) { if (abfd->my_archive != NULL |