diff options
author | Nick Clifton <nickc@redhat.com> | 2012-08-07 13:47:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-08-07 13:47:19 +0000 |
commit | a988325c2410b0ce11675fd262940bdc030f6bff (patch) | |
tree | 93df8e694479ee61dc37cace2f924872a6762dea /bfd/archive.c | |
parent | 4f69f4c267a21e787685116945fb40729a7297a5 (diff) | |
download | gdb-a988325c2410b0ce11675fd262940bdc030f6bff.zip gdb-a988325c2410b0ce11675fd262940bdc030f6bff.tar.gz gdb-a988325c2410b0ce11675fd262940bdc030f6bff.tar.bz2 |
* config/tc-i386.c (lex_got): Provide implementation for PE
format.
* gas/i386/secrel.s: Add test of <symbol>@SECREL32.
* gas/i386/secrel.d: Add expected disassembly.
* scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
* scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
* archive.c (_bfd_delete_archive_data): New function.
* libbfd-in.h (_bfd_delete_archive_data): Declare.
* libbfd.h: Rebuild.
* opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index fe57755..1148c11 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -293,6 +293,19 @@ bfd_set_archive_head (bfd *output_archive, bfd *new_head) return TRUE; } +/* Free the archive hash table, if it exists. */ + +void +_bfd_delete_archive_data (bfd *abfd) +{ + struct artdata *ardata = bfd_ardata (abfd); + + BFD_ASSERT (abfd->format == bfd_archive); + + if (ardata && ardata->cache) + htab_delete (ardata->cache); +} + bfd * _bfd_look_for_bfd_in_cache (bfd *arch_bfd, file_ptr filepos) { |