diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-07-05 09:45:54 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-07-05 09:45:54 +0000 |
commit | aa785fea891d54648fd1e0de48809132dac5cdd8 (patch) | |
tree | 83beeee9a0fb1e9850170ed49db05704b5a0da39 /bfd/libbfd-in.h | |
parent | 464a6d7eff1c95ffbc671380f9f5a3d058fca19e (diff) | |
download | gdb-aa785fea891d54648fd1e0de48809132dac5cdd8.tar.gz |
* libbfd-in.h (struct artdata): Add extended_names_size field.
* libbfd.h: Rebuilt.
* coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
allocated object by bfd_zalloc.
* coff64-rs6000.c (xcoff64_archive_p): Likewise.
* ecoff.c (_bfd_ecoff_archive_p): Likewise.
* archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
(get_extended_arelt_filename): Fail if index is bigger or equal to
extended_names_size.
(_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
get_extended_arelt_filename already did that.
(_bfd_slurp_extended_name_table): Initialize extended_names_size field.
Allocate one extra byte and clear it, in case extended names table
is not terminated.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index ac7274c8ebd..47595c6bf51 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -64,6 +64,7 @@ struct artdata { carsym *symdefs; /* the symdef entries */ symindex symdef_count; /* how many there are */ char *extended_names; /* clever intel extension */ + bfd_size_type extended_names_size; /* Size of extended names */ /* when more compilers are standard C, this can be a time_t */ long armap_timestamp; /* Timestamp value written into armap. This is used for BSD archives to check |