aboutsummaryrefslogtreecommitdiff
path: root/binutils/elfcomm.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-14 11:50:22 +1030
committerAlan Modra <amodra@gmail.com>2020-03-14 17:24:19 +1030
commit780f96aed2b4db1014e8fa2b50118676d8af0e46 (patch)
tree06cceab0c41b0978c51811e1c280733045ee1488 /binutils/elfcomm.h
parentf761cb13a903da6a5a1b3f9a5cb984600124ac31 (diff)
downloadgdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.zip
gdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.tar.gz
gdb-780f96aed2b4db1014e8fa2b50118676d8af0e46.tar.bz2
readelf large memory allocation
* elfcomm.h (setup_archive): Update prototype. * elfcomm.c (setup_archive): Add file_size parameter and sanity check longnames_size. (setup_nested_archive): Get file size and pass to setup_archive. * elfedit.c (process_archive): Likewise. * readelf.c (process_archive): Pass filedata->file_size to setup_archive.
Diffstat (limited to 'binutils/elfcomm.h')
-rw-r--r--binutils/elfcomm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h
index 9bf3c41..731d3db 100644
--- a/binutils/elfcomm.h
+++ b/binutils/elfcomm.h
@@ -74,7 +74,7 @@ extern char *adjust_relative_path (const char *, const char *, unsigned long);
/* Read the symbol table and long-name table from an archive. */
extern int setup_archive (struct archive_info *, const char *, FILE *,
- bfd_boolean, bfd_boolean);
+ bfd_size_type, bfd_boolean, bfd_boolean);
/* Open and setup a nested archive, if not already open. */
extern int setup_nested_archive (struct archive_info *, const char *);