From a988325c2410b0ce11675fd262940bdc030f6bff Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 7 Aug 2012 13:47:19 +0000 Subject: * config/tc-i386.c (lex_got): Provide implementation for PE format. * gas/i386/secrel.s: Add test of @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. --- bfd/archive.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bfd/archive.c') 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) { -- cgit v1.1