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/opncls.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/opncls.c')
-rw-r--r-- | bfd/opncls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index 0c02ee4..e538981 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -130,11 +130,15 @@ _bfd_new_bfd_contained_in (bfd *obfd) static void _bfd_delete_bfd (bfd *abfd) { + if (abfd->format == bfd_archive) + _bfd_delete_archive_data (abfd); + if (abfd->memory) { bfd_hash_table_free (&abfd->section_htab); objalloc_free ((struct objalloc *) abfd->memory); } + free (abfd); } |