diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-03-13 06:45:16 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-03-13 06:55:44 -0700 |
commit | 4810a2d92b9e1a13774c1286cd8a0f718f81abba (patch) | |
tree | ea489f8b4f635d48821bdca606585098e8f560d4 /bfd/bfd-in2.h | |
parent | 2e384d4f44f15e560b2a068e0ed866438aaa7cd7 (diff) | |
download | gdb-4810a2d92b9e1a13774c1286cd8a0f718f81abba.zip gdb-4810a2d92b9e1a13774c1286cd8a0f718f81abba.tar.gz gdb-4810a2d92b9e1a13774c1286cd8a0f718f81abba.tar.bz2 |
bfd: Use size_t in the BFD mmap interface
Change the size type in the BFD mmap interface from bfd_size_type to
size_t to be consistent with the size type of the host mmap interface.
* bfdio.c (bfd_iovec): Change the bmmap size type to size_t.
(bfd_mmap): Likewise.
(memory_bmmap): Likewise.
* cache.c (cache_bmmap): Change the bmmap size type to size_t.
* opncls.c (opncls_bmmap): Change the bmmap size type to size_t.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 79b24a7..29602e0 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -2768,9 +2768,9 @@ ufile_ptr bfd_get_size (bfd *abfd); ufile_ptr bfd_get_file_size (bfd *abfd); -void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, +void *bfd_mmap (bfd *abfd, void *addr, size_t len, int prot, int flags, file_ptr offset, - void **map_addr, bfd_size_type *map_len) + void **map_addr, size_t *map_len) ATTRIBUTE_WARN_UNUSED_RESULT; time_t bfd_get_current_time (time_t now); |