aboutsummaryrefslogtreecommitdiff
path: root/binutils/elfcomm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-07-17 16:29:36 +0000
committerNick Clifton <nickc@redhat.com>2012-07-17 16:29:36 +0000
commitc2a7d3f57d9b69909262d5c36fd500b94c84542f (patch)
tree7f2fef1bb415096821123c111905209b703fe9ca /binutils/elfcomm.h
parent2e84b6bfc2f02b1f7f9274d897d62d93faffd483 (diff)
downloadgdb-c2a7d3f57d9b69909262d5c36fd500b94c84542f.zip
gdb-c2a7d3f57d9b69909262d5c36fd500b94c84542f.tar.gz
gdb-c2a7d3f57d9b69909262d5c36fd500b94c84542f.tar.bz2
* elfcomm.c (setup_archive): Extract index table and symbol table
scanning code into... (process_archive_index_and_symbols): ... this function and add support for 64-bit index tables. * elfcomm.h (struct archive_info): Change type of index_num and index_array to elf_vma. Add 'uses_64bit_indicies' field. * readelf.c (process_archive): Fix support for 64-bit indicies.
Diffstat (limited to 'binutils/elfcomm.h')
-rw-r--r--binutils/elfcomm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h
index 2a3c913..a8c3aa3 100644
--- a/binutils/elfcomm.h
+++ b/binutils/elfcomm.h
@@ -64,8 +64,8 @@ struct archive_info
{
char * file_name; /* Archive file name. */
FILE * file; /* Open file descriptor. */
- unsigned long index_num; /* Number of symbols in table. */
- unsigned long * index_array; /* The array of member offsets. */
+ elf_vma index_num; /* Number of symbols in table. */
+ elf_vma * index_array; /* The array of member offsets. */
char * sym_table; /* The symbol table. */
unsigned long sym_size; /* Size of the symbol table. */
char * longnames; /* The long file names table. */
@@ -73,6 +73,7 @@ struct archive_info
unsigned long nested_member_origin; /* Origin in the nested archive of the current member. */
unsigned long next_arhdr_offset; /* Offset of the next archive header. */
bfd_boolean is_thin_archive; /* TRUE if this is a thin archive. */
+ bfd_boolean uses_64bit_indicies; /* TRUE if the index table uses 64bit entries. */
struct ar_hdr arhdr; /* Current archive header. */
};