]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Avoid problems with plugins being loaded multiple times.
authorZenith423 <zenith432@users.sourceforge.net>
Thu, 23 Aug 2018 15:22:56 +0000 (16:22 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 23 Aug 2018 15:22:56 +0000 (16:22 +0100)
commitb0ceb98aec8e1ab610deea9fee9ee75c5911bbc0
tree7dd7e1f16df9fb59ef5796dbe0606e1521323d67
parent12a0d0f66172b9504e29000fa4f4e5c34109d6db
Avoid problems with plugins being loaded multiple times.

PR 23460
* plugin.c (struct plugin_list_entry): New structure.
(plugin_list): New variable.
(try_load_plugin): Place opened plugins on a list.  Ensure that
the refcount in the dynamic loader is kept at 1.
bfd/ChangeLog
bfd/plugin.c